NAME

DTA::TokWrap::Processor - DTA tokenizer wrappers: base class for processor modules

SYNOPSIS

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

DESCRIPTION

The DTA::TokWrap::Processor package provides an abstract base class which subsumes document-processing modules included in the DTA::TokWrap distribution.

Constants

@ISA

DTA::TokWrap::Processor inherits from DTA::TokWrap::Base.

Constructors etc.

defaults
%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.

Methods: Document Processing

process
$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).

SEE ALSO

DTA::TokWrap::Intro(3pm), dta-tokwrap.perl(1), ...

SEE ALSO

DTA::TokWrap::Intro(3pm), dta-tokwrap.perl(1), ...

AUTHOR

Bryan Jurish <moocow@cpan.org>

COPYRIGHT AND LICENSE

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.