NAME
Lingua::EN::Semtags::Sentence - a DTO used by Lingua::EN::Semtags::Engine
SYNOPSIS
use Lingua::EN::Semtags::Sentence;
DESCRIPTION
A DTO used by Lingua::EN::Semtags::Engine
. Aggregates instances of Lingua::EN::Semtags::LangUnit
s.
METHODS
- add_lunit($lunit)
-
Adds
$lunit
to$self->{lunits}
. - lunits()
-
Returns
$self->{lunits}
. - phrase_tokens()
-
Returns
$self->{phrase_tokens}
. Returns a hash ref. The hash is of the following format:{$phrase_token => 1}
. - string([$string])
-
Returns/sets
$self->{string}
. - word_tokens()
-
Returns
$self->{word_tokens}
(a hash ref). The hash is of the following format:{$word_token => $pos}
.
SEE ALSO
AUTHOR
Igor Myroshnichenko <igorm@cpan.org>
Copyright (c) 2008, All Rights Reserved.
This software is free software and may be redistributed and/or modified under the same terms as Perl itself.