- SEE ALSO
- COPYRIGHT AND LICENSE
Lingua::YaTeA::TagSet - Perl extension for managing the set of Part-of-Speech tags and inflected that can be accepted in the terms.
use Lingua::YaTeA::TagSet; Lingua::YaTeA::TagSet->new();
This module provides methods for managing a set of Part-of-Speech tags of inflected forms that can be accepted in the terms to extract. Such lists of tags or inflected form are used by the Parsing Patterns while the syntactic analusys of the maximal noun phrases. This information is generally stored in the c<TagSet> configuration file. The definition of the different classes is provided:
CANDIDATES}(the content words),
DETERMINERS (the determiner words),
PREPOSITIONS (the preposition words) and
COORDINATIONS (the coordination words).
$file = "/home/thierry/YaTeAconfig/EN/TagSet"; new($file);
This method creates an object with 5 fields
ANY and loads the tags contained in the file
$file. The field
ANY contains all the tags. A field designates a class of tags and is a hash table.
This method opens the file
$file and loads all the tagsets.
This method stores the tag
$tag in the right class
This method returns the field of the current object that contains tags of the class
This method returns all the tags of the class
This methods indicates whether the tag
$tag exists in the subset of tags
$subset (it returns the value 1) or not (its returns the value 0). The field of the objet corresponding to the structure is set.
This method parses a line containing the definition of a subset of tags. it sets the corresponding field in the object calling the method. In case of an error of format, the method dies.
The method sets the field
ALL of the subset
$subset with the tags contained in the array
\@tags given by reference. This field is a string containg a regex. Each tag is an alternative.
The method returns a regex where each element of the array given by reference is a alternative and is sorted.
Sophie Aubin and Thierry Hamon. Improving Term Extraction with Terminological Resources. In Advances in Natural Language Processing (5th International Conference on NLP, FinTAL 2006). pages 380-387. Tapio Salakoski, Filip Ginter, Sampo Pyysalo, Tapio Pahikkala (Eds). August 2006. LNAI 4139.
Thierry Hamon <firstname.lastname@example.org> and Sophie Aubin <email@example.com>
Copyright (C) 2005 by Thierry Hamon and Sophie Aubin
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.