DTA::TokWrap::Base - DTA tokenizer wrappers: base class
use DTA::TokWrap::Base;
##========================================================================
## Constructors etc.
$obj = $CLASS_OR_OBJ->new(%args); ##-- inheritable constructor
%defaults = $CLASS_OR_OBJ->defaults(); ##-- set static defaults
$obj = $obj->init(); ##-- set dynamic defaults
DTA::TokWrap::Base provides an abstract base class for all object classes in the DTA::TokWrap distribution
DTA::TokWrap::Base inherits from DTA::TokWrap::Logger.
$obj = $CLASS_OR_OBJ->new(%args);
Generic constructor. %args is a hash of subclass-dependent constructor options.
The default implementation calls $CLASS_OR_OBJ->defaults() before the new object is instiated, and and $obj->init() afterwords.
%defaults = CLASS_OR_OBJ->defaults();
Subclasses may define a defaults()
method to set static (class-dependent) object defaults. The return value %defaults should be an object option hash.
The default implementation just returns an empty hash.
$obj = $obj->init();
Subclasses may define an init()
method to compute dynamic (object-dependent) object defaults.
The default implementation 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.