Lingua::YaTeA::ForbiddenStructureSet - Perl extension for managing the forbiddent structures.
use Lingua::YaTeA::ForbiddenStructureSet; Lingua::YaTeA::ForbiddenStructureSet->new();
This module gathers forbidden structures used while the chunking step. The set of forbidden structures is composed of five fields:
ANY
It lists the strings corresponding to forbidden structures used in ANY position of a chunk
START
It lists the strings corresponding to forbidden structures used in the START position of a chunk
END
It lists the strings corresponding to forbidden structures used in the END position of a chunk
START_TRIGGERS
This field contains the triggers defining the beginning of the forbidden structure.
END_TRIGGERS
This field contains the triggers defining the end of the forbidden structure.
new($file_path)
The method creates a forbidden structure set and loads the forbidden structures from the file $file_path.
$file_path
loadStructures($file_path);
The method loads the forbidden structures from the file $file_path, and set the triggers.
getTriggerSet($position);
This methid returns the trigger set that can be used in the position ANY, START or END.
getSubset($name);
This methid returns the forbidden structure subset according the given position $name (i.e. ANY, START or END).
$name
cleanInfos($infos_a);
The internal method is used to chomp the informations read in the file. infos_a is the reference to the array containing the information related to a forbidden structure.
infos_a
sort($subset);
the method sorts the forbidden structure subset according their length.
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.