Lingua::YaTeA::Occurrence - Perl extension for the phrase occurrences
use Lingua::YaTeA::Occurrence; Lingua::YaTeA::Occurrence->new();
This module implements a reprensentation of a phrase occurrence. Each occurrence is described by five fields: an identifier ID, a reference to the object referring the sentence where the phrase occurs SENTENCE, the character where the phrase begins START_CHAR, the character where the phrase ends END_CHAR and the indication whether the occurrence is a maximal noun phrase.
ID
SENTENCE
START_CHAR
END_CHAR
new();
The method creates a new object for a phrase occurrence and returns the object.
getSentence();
The method returns the obeject referring the sentence where the phrase occurs.
getStartChar();
The method returns the start character of the phrase occurrence.
getEndChar();
The method returns the end character of the phrase occurrence.
getID();
The method returns the identifier of the phrase occurrence.
getDocument();
The method returns the document reference where the phrase occurs
isMaximal();
The medthod indicates if the phrase occurrence is maximal.
setInfoForPhrase(@words, $maximal);
The method sets the information related to the phrase occurrence for the array of words @words. $maximal indicates if the phrase occurrence is maximal.
@words
$maximal
setInfoForTestifiedTerm($sentence, $start_char, $end_char);
The method sets the information related to the phrase occurrence for a testified term: the object referring the sentence $sentence, the start character $start_char and the end character $end_char.
$sentence
$start_char
$end_char
print($fh);
The method prints the information related to the phrase occurrence in the file handler $fh.
$fh
isNotBest($other_occurrences_a,$parsing_direction);
The method indicates if the current phrase occurrence is included in one of the occurrence of the array $other_occurrences_a or regarding the most convinient occurrence according to the parsing direction $parsing_direction. In that case, it returns 1, otherwise undef.
$other_occurrences_a
$parsing_direction
crossesWithoutPriority($other,$parsing_direction);
This method indicates if the current phrase occrrence is partially embeded in a the other phrase occurrence $other, according to the prioritu given by $parsing_direction. In that case, it returns 1, otherwise undef.
$other
isIncludedIn($other;
The method indicates if the current phrase occurrence is included in the phrase $other. In that case, it returns 1, otherwise undef.
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.