Igor Myroshnichenko > Lingua-EN-Semtags-Engine-0.02 > Lingua::EN::Semtags::Sentence

Download:
Lingua-EN-Semtags-Engine-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.02   Source  

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::LangUnits.

METHODS

add_lunit($lunit)

Adds $lunit to $self->{lunits}.

lunits()

Returns $self->{lunits}.

phrase_tokens()

Returns $self->{phrase_tokens} (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 ^

Lingua::EN::Semtags::Engine, Lingua::EN::Semtags::LangUnit

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.