NAME
Lingua::YaTeA::TermLeaf - Perl extension for leaf node of term tree
SYNOPSIS
use Lingua::YaTeA::TermLeaf;
Lingua::YaTeA::TermLeaf->new($index);
DESCRIPTION
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).
METHODS
new()
new($index);
The method creates a new term leaf. $index
records the position of the associated word(s).
getIF()
getIF($words_a);
The method returns the inflected form of the term leaf. $words_a
is the array containing the associated word.
getPOS()
getPOS($words_a);
The method returns the Part-of-speech of the term leaf. $words_a
is the array containing the associated word.
getLF()
getLF($words_a);
The method returns the lemmatized form of the term leaf. $words_a
is the array containing the associated word.
getID()
getID($words_a);
The method returns the identifier of the term leaf. $words_a
is the array containing the associated word.
getIndex()
getIndex();
The method returns the position of the word associated to the term leaf.
getLength()
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()
getWord($words_a);
The method returns the word associated to the term leaf. $words_a
is the array containing the associated word.
searchHead()
searchHead();
The method returns the head of the current term leaf, i.e. the term leaf itself.
print()
print($words_a, $fh);
The method prints the term leaf in the file descriptor $fh
.
printWords()
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()
searchRightMostLeaf($depth_r);
The method returns the current term leaf as the right most term leaf.
searchLeftMostLeaf()
searchLeftMostLeaf();
The method returns the current term leaf as the left most term leaf.
SEE ALSO
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.
AUTHOR
Thierry Hamon <thierry.hamon@univ-paris13.fr> and Sophie Aubin <sophie.aubin@lipn.univ-paris13.fr>
COPYRIGHT AND LICENSE
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.