-
-
27 Feb 2018 08:40:23 UTC
- Distribution: Lucy
- Module version: 0.006002
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone repository
- Issues
- Testers (1249 / 3 / 7)
- Kwalitee
Bus factor: 1- License: apache_2_0
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (1.12MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- The Apache Lucy Project <dev at lucy dot apache dot org>
- Dependencies
- Clownfish
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Lucy::Analysis::Inversion - A collection of Tokens.
SYNOPSIS
my $result = Lucy::Analysis::Inversion->new; while (my $token = $inversion->next) { $result->append($token); }
DESCRIPTION
An Inversion is a collection of Token objects which you can add to, then iterate over.
CONSTRUCTORS
new
my $inversion = Lucy::Analysis::Inversion->new( $seed, # optional );
Create a new Inversion.
seed - An initial Token to start things off, which may be undef.
METHODS
append
$inversion->append($token);
Tack a token onto the end of the Inversion.
token - A Token.
next
my $token = $inversion->next();
Return the next token in the Inversion until out of tokens.
reset
$inversion->reset();
Reset the Inversion’s iterator, so that the next call to next() returns the first Token in the inversion.
INHERITANCE
Lucy::Analysis::Inversion isa Clownfish::Obj.
Module Install Instructions
To install Lucy, copy and paste the appropriate command in to your terminal.
cpanm Lucy
perl -MCPAN -e shell install Lucy
For more information on module installation, please visit the detailed CPAN module installation guide.