Guillaume Rousse > Lingua-TagSet-0.3.2 > Lingua::TagSet::Tag

Download:
Lingua-TagSet-0.3.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Lingua::TagSet::Tag - Tag object for Lingua::TagSet

Constructor ^

new(%features)

Creates and returns a new Lingua::TagSet::Tag object.

$tag->get_tokens()

Returns the tokens composing the tag.

$tag->set_tokens(@tokens)

Sets the tokens composing the tag.

$tag->get_token($id)

Returns one of the token composing the tag.

$tag->set_token($id, $values)

Sets one of the token composing the tag.

$tag->insert_token($id, $values)

Insert a new token in the tag, and shift the existing ones.