Lingua::YaTeA::TermLeaf - Perl extension for leaf node of term tree
use Lingua::YaTeA::TermLeaf; Lingua::YaTeA::TermLeaf->new($index);
This module implements the leaf node of a testified term represented as tree. Objects inherit of the module Lingua::YaTeA::Edge. A field INDEX records the position of the associated word(s).
Lingua::YaTeA::Edge
INDEX
new($index);
The method creates a new term leaf. $index records the position of the associated word(s).
$index
getIF($words_a);
The method returns the inflected form of the term leaf. $words_a is the array containing the associated word.
$words_a
getPOS($words_a);
The method returns the Part-of-speech of the term leaf. $words_a is the array containing the associated word.
getLF($words_a);
The method returns the lemmatized form of the term leaf. $words_a is the array containing the associated word.
getID($words_a);
The method returns the identifier of the term leaf. $words_a is the array containing the associated word.
getIndex();
The method returns the position of the word associated to the term leaf.
getLength($words_a);
The method returns the length of the word associated to the term leaf. $words_a is the array containing the associated word.
getWord($words_a);
The method returns the word associated to the term leaf. $words_a is the array containing the associated word.
searchHead();
The method returns the head of the current term leaf, i.e. the term leaf itself.
print($words_a, $fh);
The method prints the term leaf in the file descriptor $fh.
$fh
printWords($words_a, $fh);
The method prints the inflected form of the words associated to the term leaf ($words_a) in the file descriptor $fh.
searchRightMostLeaf($depth_r);
The method returns the current term leaf as the right most term leaf.
searchLeftMostLeaf();
The method returns the current term leaf as the left most term leaf.
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.