NAME
Lingua::YaTeA::Sentence - Perl extension for sentence
SYNOPSIS
use Lingua::YaTeA::Sentence;
Lingua::YaTeA::Sentence->new($document);
DESCRIPTION
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.
METHODS
new()
new($document);
the method creates a new sentence and defined the reference given the document $document
.
resetInDocCounter()
resetInDocCounter();
The method resets the counter managing the sentence rank in a document.
resetStartChar()
resetStartChar()
The method resets the $start_char
offset.
updateStartChar()
updateStartChar($word);
The method updates the $start_char
offset given the length of the inflected form of the word $word
.
getDocument()
getDocument();
The method returns the reference of the document which contains the sentence.
getID()
getID();
The method returns the sentence identifier.
getInDocID()
getInDocID();
The method returns the rank of the sentence in the document.
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.