Lingua::YaTeA::ForbiddenStructureMark - Perl extension for mananging the annotation marks for the forbidden structures
use Lingua::YaTeA::ForbiddenStructureMark; Lingua::YaTeA::ForbiddenStructureMark->new($form);
This method implements the annotation marks defining the forbidden structures in the corpus. forbidden structure marks are lexico-syntactic structures defining the phrases which must not appear in the terms. The object inherits of the module Lingua::YaTea::AnnotaionMark. In addition to the annotation marks, each forbidden structure mark has a ACTION field defining the action to carry out when the mark is identified (value split or delete), and a SPLIT_AFTER field address the word after which the split action will be done.
ACTION
split
delete
SPLIT_AFTER
new($form);
The method creates and retuens a new object for a forbidden structure mark $form as it appears in the annotated corpus. $form is in a specific internal format.
$form
parse($form);
The method parses the forbiddent strcuture mark $form, and returns its identifier, the action to carry out, in the case of a split action, the word address which is used to split, and the type of mark (opener if the starting mark, and closer if it is the ending mark).
opener
closer
isOpener();
The method indicates if the mark is an opener, that is a mark indicating the beginning of a forbidden structure. The method returns 1 if the mark is an opener.
isCloser();
The method indicates if the mark is a closer, that is a mark indicating the end of a forbidden structure. The method returns 1 if the mark is a closer.
getAction();
The method returns the action associated to the mark.
getSplitAfter();
The method returns the word address where split action will be applyied.
isActionSplit();
The method indicates if the action is a split action (1 if yes, 0 if not).
isActionDelete();
The method indicates if the action is a delete action (1 if yes, 0 if not).
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.