NAME

Lingua::Features::Structure - Structure object for Lingua::Features

Constructor

new(%features)

Creates and returns a new Lingua::Features::Structure object.

from_string($string)

Creates and returns a new Lingua::Features::Structure object from a string representation.

Accessors

$structure->get_type()

Returns the type of this feature as a hash of types indexed by id.

$structure->get_features()

Returns the features composing the structure.

$structure->set_features(%features)

Sets the features composing the structure.

$structure->get_feature($id)

Returns one of the features composing the structure.

$structure->set_feature($id, $value)

Sets one of the features composing the structure.

Other methods

$structure->to_string()

Dumps the structure in string format.

$structure->to_xml()

Dumps the structure in XML format.

$structure->is_subset($other_structure)

Return true if current structure is a subset of $other_structure.

$structure->is_compatible($other_structure)

Return true if either of current structure and $other_structure is a subset of the other.

COPYRIGHT AND LICENSE

Copyright (C) 2004, INRIA.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Guillaume Rousse <grousse@cpan.org>