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), ...
DTA::TokWrap::Intro(3pm), dta-tokwrap.perl(1), ...
Bryan Jurish <jurish@bbaw.de>
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.