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


Lingua-EN-Semtags-Engine documentation  | view source Contained in the Lingua-EN-Semtags-Engine distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

Lingua::EN::Semtags::Engine

AUTHOR

Top

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.


Lingua-EN-Semtags-Engine documentation  | view source Contained in the Lingua-EN-Semtags-Engine distribution.