Moot::Waste::Annotator - libmoot : WASTE tokenizer : pattern-based token annotator
use Moot::Waste::Annotator; ##===================================================================== ## Usage $wa = Moot::Waste::Annotator->new(); ##-- create a new annotator $wa->sink($writer); ##-- set low-level TokenWriter object (e.g. Moot::TokenWriterNative) $wa->sink(); ##-- get underlying TokenWriter or undef $wa->close(); ##-- close current output channel (unsets sink, clears buffer) $wa->put_token($tok); ##-- decode next token #... or (almost) any other Moot::TokenWriter method ##===================================================================== ## Direct Access (e.g. with no TokenWriter sink) $atok = $wa->annotate($tok); ##-- returns annotated version of $tok
The Moot::Waste::Annotator module provides an object-oriented interface to the WASTE tokenization system's simply text-based annotation stage.
Moot(3perl), Moot::Waste(3perl), Moot::Waste::Scanner(3perl), Moot::Waste::Lexer(3perl), waste(1), perl(1).
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2013 by Bryan Jurish
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.
To install Moot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Moot
CPAN shell
perl -MCPAN -e shell install Moot
For more information on module installation, please visit the detailed CPAN module installation guide.