The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Lingua::EN::Semtags::LangUnit - a DTO used by Lingua::EN::Semtags::Sentence

SYNOPSIS

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

DESCRIPTION

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

METHODS

add_isa($lunit)

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

is_phrase()

Returns true is 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 the WordNet::QueryData style tag.

sense([$sense])

Returns/sets $self->{sense}.

token()

Returns $self->{token}.

SEE ALSO

Lingua::EN::Semtags::Engine

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.