Lucy::Analysis::StandardTokenizer - Split a string into tokens.
my $tokenizer = Lucy::Analysis::StandardTokenizer->new; # Then... once you have a tokenizer, put it into a PolyAnalyzer: my $polyanalyzer = Lucy::Analysis::PolyAnalyzer->new( analyzers => [ $tokenizer, $normalizer, $stemmer ], );
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.
my $tokenizer = Lucy::Analysis::StandardTokenizer->new;
Constructor. Takes no arguments.
Lucy::Analysis::StandardTokenizer isa Lucy::Analysis::Analyzer isa Clownfish::Obj.
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy::Simple
CPAN shell
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.