Lingua::YaTeA::WordOccurrence - Perl extension for managing word occurrence
use Lingua::YaTeA::WordOccurrence; Lingua::YaTeA::WordOccurrence->new($form)
The module implements a basic representation of word occurrence in the input corpus. It is used in the module Lingua::YaTeA::AnnotationMark.
==head2 new()
new($form);
The method creates a new object for managing word occurrence having the inflected form $form.
$form
setForm($form);
The method sets the inflected form ($form) of the word occurrence.
getForm();
The methods returns the inflected form of the word occurrence.
isChunkEnd($action,$split_after,$sentence_boundary,$document_boundary,$chunking_data);
The methods indicates if the word occurrence is the end of chunk (return value 1) or not (return value 0) regarding the sentence and document boundaries ($sentence_boundary and $document_boundary), if the chunknig frontier (according to$chunking_data), or the presence of a forbidden frontier and the related action ($action values are delete and split -- $split_after indicates if the rank of the word after which the chunk is split).
$sentence_boundary
$document_boundary
$chunking_data
$action
delete
split
$split_after
print($fh);
The method prints into the file hanlder $fh, the information related to the word occurrence (i.e. its inflected form).
$fh
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.