NAME

Lingua::YaTeA::ParsingPatternParser - Perl extension for parsing the file containing the parsing patterns (based on Parse::Yapp)

SYNOPSIS

use Lingua::YaTeA::ParsingPatternParser;

my $fh = FileHandle->new("<$file_path");

my $parser = Lingua::YaTeA::ParsingPatternParser->new();

$parser->YYData->{PPRS} = $this;
$parser->YYData->{FH} = $fh;
$parser->YYData->{CANDIDATES} = $tag_set->getTagList("CANDIDATES");
$parser->YYData->{PREPOSITIONS} = $tag_set->getTagList("PREPOSITIONS");
$parser->YYData->{DETERMINERS} = $tag_set->getTagList("DETERMINERS");

$parser->YYParse(yylex => \&Lingua::YaTeA::ParsingPatternParser::_Lexer, yyerror => \&Lingua::YaTeA::ParsingPatternParser::_Error);

DESCRIPTION

The module implements a parser for analysing parsing pattern file.

The parser takes into account several information: the file handler to read (field FH), the list of the possible Part-of-Speech tags (field CANDIDATES), the list of prepositions (field PREPOSITIONS), and the list of determiners (field DETERMINERS).

METHODS

_Error()

_Error($error_objet);

The method is used to manage the parsing error and prints a message explaining the error.

_Lexer()

_Lexer($parser_info);

The method applies the parser on the data contains in the structure $parser_info (field INPUT).

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>

COPYRIGHT AND LICENSE

Copyright (C) 2007 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.