NAME
Lingua::YaTeA::ParsingPattern - Perl extension for parsing pattern
SYNOPSIS
use Lingua::YaTeA::ParsingPattern;
Lingua::YaTeA::ParsingPattern->new($parse,$pos_sequence,$node_set,$priority,$direction,$num_content_words,$num_line);
DESCRIPTION
The module implements a parsing pattern, i.e. the structure used to parse noun phrases or identify reliability islands. Several field decribe it. PARSE
is the string defining the parsing pattern, and NODE_SET
is the tree representing the parsing pattern. The priority of the parsing pattern is recorded in the field PRIORITY
. The field PARSING_DIRECTION
contains the parsing direction of the pattern. The field DELARACTION_LINE
is the line number of the parsing pattern in the file. the Part-Of-Speech sequence is stored in the field POS_SEQUENCE
and the number of content words is recorded in the field CONTENT_WORDS
.
METHODS
new()
new($parse,$pos_sequence,$node_set,$priority,$direction,$num_content_words,$num_line);
The method creates a new parsing pattern. The field PARSE
is set with $parse
. $pos_sequence
sets the field POS_SEQUENCE
. the fiekd NODE_SET
is set with $node_set
. $priority
is the value of the field PRIORITY
. The direction of parsing (PARSING_DIRECTION
) is set with $direction
. The variable $num_line
sets the field DECLARATION_LINE
, and the field CONTENT_WORDS
is set with $num_content_words
.
setNodeSet()
setNodeSet($node_set);
This method sets the node set (field NODE_SET
).
getParse()
getParse();
The method returns the string designing the parsing pattern (field PARSE
).
getLength()
getLength();
The method returns the number of elements of the parsing patterns.
getPriority()
getPriority();
The method returns the priority of the parsing pattern (field PRIORITY
).
getDirection()
getDirection();
The method returns the parsing direction of the parsing pattern (field PARSING_DIRECTIONa
).
getNodeSet()
getNodeSet();
The method returns the set of nodes corresponding to the parsing pattern (field NODE_SET
).
getNumContentWords()
getNumContentWords();
The method returns the number of content words of the parsing pattern (field CONTENT_WORD
).
getPOSSequence()
getPOSSequence();
The method returns the Part-Of-Speech sequence of the parsing pattern (field POS_SEQUENCE
).
print()
print();
The method prints the information related to the parsing pattern.
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.