DTA::CAB::Datum - generic API for data (tokens,sentences,documents,...) passed to/from DTA::CAB::Analyzer
use DTA::CAB::Datum;
$tok = CLASS::toToken($tok);
$sent = CLASS::toSentence($sent);
$doc = CLASS::toDocument($doc);
DTA::CAB::Datum inherits from Exporter
and DTA::Cab::Logger.
By default, the methods "toToken"(), "toSentence"(), and "toDocument"() are exported.
$tok = CLASS::toToken($tok);
$tok = CLASS::toToken($text);
Creates a new DTA::CAB::Token object or returns its argument (if already such an object).
$sent = CLASS::toSentence($sent);
$sent = CLASS::toSentence(\@tokens);
Creates a new DTA::CAB::Sentence object or returns its argument (if already such an object).
$doc = CLASS::toDocument($doc);
$doc = CLASS::toDocument(\@sents);
Creates a new DTA::CAB::Document object or returns its argument (if already such an object).
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2009-2019 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.24.1 or, at your option, any later version of Perl 5 you may have available.
Hey! The above document had some coding errors, which are explained below:
=cut found outside a pod block. Skipping to next block.