The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.