Author image Thierry Hamon
and 1 contributors

NAME

Lingua::YaTeA::ForbiddenStructureAny - Perl extension for forbidden structures in any position of a chunk.

SYNOPSIS

  use Lingua::YaTeA::ForbiddenStructureAny;
  Lingua::YaTeA::ForbiddenStructureAny->new(\@infos_a);

DESCRIPTION

The module describes the forbidden structures that can be used in any position in the chunk. This is a specialisation of the Lingua::YaTeA::ForbiddenStructure module. Three fields are added:

  • ACTION: this field defines the action (split or delete.

  • SPLIT_AFTER: if the split action is used, this field defines the words, lemmas, tags of patterns that will be used to perform the splitting process.

  • REG_EXP: this field contains the regular expression corresponding to the pattern of the forbidden structure.

METHODS

new()

    new($infos_a)

The method creates a forbidden structure that can be found in any position. The forbidden structure is defined from the array given by reference $infos_a. All fields are set.

setSplitAfter()

    setSplitAfter($infos_a)

This method return the value hat will be set in the SPLIT_AFTER field if necessary.

parse()

    parse($string);

The method parses the pattern of the forbidden structure $string and returns the $form of the forbidden structure and the corresponding regular expression.

getAction()

    getAction();

The method returns the value of the ACTION field.

getRegExp()

    getRegExp();

The method returns the value of the REG_EXPO field.

getSplitAfter()

    getSplitAfter();

The method returns the value of the SPLIT_AFTER field.

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.