NAME
DTA::CAB::Datum - generic API for data (tokens,sentences,documents,...) passed to/from DTA::CAB::Analyzer
SYNOPSIS
use DTA::CAB::Datum;
$tok = CLASS::toToken($tok);
$sent = CLASS::toSentence($sent);
$doc = CLASS::toDocument($doc);
DESCRIPTION
Globals
- Variable: @ISA
-
DTA::CAB::Datum inherits from
Exporter
and DTA::Cab::Logger. - Variable: @EXPORT
-
By default, the methods "toToken"(), "toSentence"(), and "toDocument"() are exported.
Constructors etc.
- toToken
-
$tok = CLASS::toToken($tok); $tok = CLASS::toToken($text);
Creates a new DTA::CAB::Token object or returns its argument (if already such an object).
- toSentence
-
$sent = CLASS::toSentence($sent); $sent = CLASS::toSentence(\@tokens);
Creates a new DTA::CAB::Sentence object or returns its argument (if already such an object).
- toDocument
-
$doc = CLASS::toDocument($doc); $doc = CLASS::toDocument(\@sents);
Creates a new DTA::CAB::Document object or returns its argument (if already such an object).
AUTHOR
Bryan Jurish <moocow@cpan.org>
COPYRIGHT AND LICENSE
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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 212:
=cut found outside a pod block. Skipping to next block.