- SEE ALSO
- COPYRIGHT AND LICENSE
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
delete), and a
SPLIT_AFTER field address the word after which the split action will be done.
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.
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).
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.
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.
The method returns the action associated to the mark.
The method returns the word address where split action will be applyied.
The method indicates if the action is a split action (1 if yes, 0 if not).
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 <email@example.com> and Sophie Aubin <firstname.lastname@example.org>
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.