Lingua::YaTeA::ForbiddenStructureAny - Perl extension for forbidden structures in any position of a chunk.
use Lingua::YaTeA::ForbiddenStructureAny; Lingua::YaTeA::ForbiddenStructureAny->new(\@infos_a);
The module describes the forbidden structures that can be used in any position in the chunk. This is a specialisation of the Lingua::YaTeA::ForbiddenStructure module. Three fields are added:
Lingua::YaTeA::ForbiddenStructure
ACTION: this field defines the action (split or delete.
ACTION
split
delete
SPLIT_AFTER: if the split action is used, this field defines the words, lemmas, tags of patterns that will be used to perform the splitting process.
SPLIT_AFTER
REG_EXP: this field contains the regular expression corresponding to the pattern of the forbidden structure.
REG_EXP
new($infos_a)
The method creates a forbidden structure that can be found in any position. The forbidden structure is defined from the array given by reference $infos_a. All fields are set.
$infos_a
setSplitAfter($infos_a)
This method return the value hat will be set in the SPLIT_AFTER field if necessary.
parse($string);
The method parses the pattern of the forbidden structure $string and returns the $form of the forbidden structure and the corresponding regular expression.
$string
$form
getAction();
The method returns the value of the ACTION field.
getRegExp();
The method returns the value of the REG_EXPO field.
REG_EXPO
getSplitAfter();
The method returns the value of the SPLIT_AFTER field.
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 <thierry.hamon@univ-paris13.fr> and Sophie Aubin <sophie.aubin@lipn.univ-paris13.fr>
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.
To install Lingua::YaTeA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::YaTeA
CPAN shell
perl -MCPAN -e shell install Lingua::YaTeA
For more information on module installation, please visit the detailed CPAN module installation guide.