DTA::TokWrap::Processor - DTA tokenizer wrappers: base class for processor modules
use DTA::TokWrap::Processor; ##======================================================================== ## Constructors etc. %defaults = $CLASS->defaults(); ##-- static class-dependent defaults ##======================================================================== ## Methods: Document Processing $doc_or_undef = $CLASS_OR_OBJECT->process($doc); ##-- wrapper
The DTA::TokWrap::Processor package provides an abstract base class which subsumes document-processing modules included in the DTA::TokWrap distribution.
DTA::TokWrap::Processor inherits from DTA::TokWrap::Base.
%defaults = $CLASS_OR_OBJ->defaults();
Known defaults added by this class:
traceLevel => $how, ##-- trace level for DTA::TokWrap::Logger subs
Default $how = 'trace'. See DTA::TokWrap::Logger->vlog() for known values of $how.
$doc_or_undef = $CLASS_OR_OBJECT->process($doc);
Performs sub-processing operation on $doc.
Default implementation calls $CLASS_OR_OBJECT->${BASENAME}($doc) if available, where $BASENAME = ($CLASS=~s/^.*:://); otherwise just returns $doc (i.e. does nothing).
DTA::TokWrap::Intro(3pm), dta-tokwrap.perl(1), ...
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2009-2018 by Bryan Jurish
This package 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 DTA::TokWrap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DTA::TokWrap
CPAN shell
perl -MCPAN -e shell install DTA::TokWrap
For more information on module installation, please visit the detailed CPAN module installation guide.