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

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::LangUnit - a DTO used by Lingua::EN::Semtags::Sentence and Lingua::EN::Semtags::Engine.

SYNOPSIS ^

  use Lingua::EN::Semtags::LangUnit;

DESCRIPTION ^

A DTO used by Lingua::EN::Semtags::Sentence and Lingua::EN::Semtags::Engine.

METHODS

add_isa($lunit)

Adds $isa to $self->{isas}.

is_phrase()

Returns true if this language unit is a phrase.

is_word()

Returns true if this language unit is a word.

isas()

Returns $self->{isas}.

pos()

Returns $self->{pos}(a Lingua::EN::Tagger part of speech tag).

poswn()

Returns $self->{pos} converted into a WordNet::QueryData tag.

sense([$sense])

Returns/sets $self->{sense}.

token()

Returns $self->{token}.

SEE ALSO ^

Lingua::EN::Semtags::Engine, Lingua::EN::Semtags::Sentence

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.