Lucy::Analysis::Inversion - A collection of Tokens.
my $result = Lucy::Analysis::Inversion->new; while (my $token = $inversion->next) { $result->append($token); }
An Inversion is a collection of Token objects which you can add to, then iterate over.
my $inversion = Lucy::Analysis::Inversion->new( $seed, # optional );
Create a new Inversion.
seed - An initial Token to start things off, which may be undef.
$inversion->append($token);
Tack a token onto the end of the Inversion.
token - A Token.
my $token = $inversion->next();
Return the next token in the Inversion until out of tokens.
$inversion->reset();
Reset the Inversion’s iterator, so that the next call to next() returns the first Token in the inversion.
Lucy::Analysis::Inversion isa Clownfish::Obj.
To install Lucy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy
CPAN shell
perl -MCPAN -e shell install Lucy
For more information on module installation, please visit the detailed CPAN module installation guide.