Lucy::Analysis::StandardTokenizer(3pm)

Lucy::Analysis::StandardTokenizer3pm

Split a string into tokens.

Usage

    my $tokenizer = Lucy::Analysis::StandardTokenizer->new;
    # Then... once you have a tokenizer, put it into a PolyAnalyzer:
    my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new(
        analyzers => [ $case_folder, $tokenizer, $stemmer ], );

Overview

Generically, "tokenizing" is a process of breaking up a string into an array of "tokens". For instance, the string "three blind mice" might be tokenized into "three", "blind", "mice".

Lucy::Analysis::StandardTokenizer breaks up the text at the word boundaries defined in Unicode Standard Annex #29. It then returns those words that start with an alphabetic or numeric character.

Constructors

new()

    my $tokenizer = Lucy::Analysis::StandardTokenizer->new;

Constructor. Takes no arguments.

Inheritance

Lucy::Analysis::StandardTokenizer isa Lucy::Analysis::Analyzer isa Lucy::Object::Obj.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From liblucy-perl 0.3.3-7+b1 in Debian 9 (Stretch). Parsed by carta from the page's man source.