Lingua::YaTeA::Sentence - Perl extension for sentence
use Lingua::YaTeA::Sentence; Lingua::YaTeA::Sentence->new($document);
the module implements sentences of the document. An identifier (field ID) is associated to each sentence. The field IN_DOC_ID records the rank of the sentence in the document. The field DOCUMENT is the reference to the document object.
ID
IN_DOC_ID
DOCUMENT
new($document);
the method creates a new sentence and defined the reference given the document $document.
$document
resetInDocCounter();
The method resets the counter managing the sentence rank in a document.
resetStartChar()
The method resets the $start_char offset.
$start_char
updateStartChar($word);
The method updates the $start_char offset given the length of the inflected form of the word $word.
$word
getDocument();
The method returns the reference of the document which contains the sentence.
getID();
The method returns the sentence identifier.
getInDocID();
The method returns the rank of the sentence in the document.
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.