View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Thierry Hamon > Lingua-YaTeA-0.622 > Lingua::YaTeA

Download:
Lingua-YaTeA-0.622.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.622   Source  

NAME ^

Lingua::YaTeA - Perl extension for extracting terms from a corpus and providing a syntactic analysis in a head-modifier format.

SYNOPSIS ^

use Lingua::YaTeA;

my %config = Lingua::YaTeA::load_config($rcfile);

$yatea = Lingua::YaTeA->new($config{"OPTIONS"}, \%config);

$corpus = Lingua::YaTeA::Corpus->new($corpus_path,$yatea->getOptionSet,$yatea->getMessageSet);

$yatea->termExtraction($corpus);

DESCRIPTION ^

This module is the main module of the software named YaTeA. It aims at extracting noun phrases that look like terms from a corpus. It provides their syntactic analysis in a head-modifier representation. As an input, the term extractor requires a corpus which has been segmented into words and sentences, lemmatized and tagged with part-of-speech (POS) information. The input file is encoded in UTF-8. The implementation of this term extractor allows to process large corpora. Data provided with YaTeA allow to extract terms from English and French texts. But new linguistic features can be integrated to extract terms from another language. Moreover, linguistic features can be modified or created for a sub-language or tagset.

For the use of YaTeA, see the documentation with the script yatea.

The main strategy of analysis of the term candidates is based on the exploitation of simple parsing patterns and endogenous disambiguation. Exogenous disambiguation is also made possible for the identification and the analysis of term candidates by the use of external resources, i.e. lists of testified terms.

ANALYSIS: ENDOGENOUS AND EXOGENOUS DISAMBIGUATION

Endogenous disambiguation consists in the exploitation of intermediate chunking and parsing results for the parsing of a given Maximal Noun Phrase (MNP). This feature allows the parse of complex noun phrases using a limited number of simple parsing patterns (80 patterns containing a maximum of 3 content words in the experiments described below). All the MNPs corresponding to parsing patterns are parsed first. In a second step, remaining unparsed MNPs are processed using the results of the first step as islands of reliability. An island of reliability is a subsequence (contiguous or not) of a MNP that corresponds to a shorter term candidate that was parsed during the first step of the parsing process. This subsequence along with its internal analysis is used as an anchor in the parsing of the MNP. Islands are used to simplify the POS sequence of the MNP for which no parsing pattern was found. The subsequence covered by the island is reduced to its syntactic head. In addition, islands increase the degree of reliability of the parse. When no resource is provided and as there is no parsing pattern defined for the complete POS sequence "NN NN NN of NN" corresponding to the term candidate "Northern blot analysis of cwlH", the progressive method is applied. In such a case, the TC is bracketed from the right to the left, which results in a poor quality analysis. When considering the island of reliability "northern blot analysis", the correct bracketing is found.

METHODS ^

load_config()

    load_config($rcfile);

The method loads the configuration of the NLP Platform by reading the configuration file given in argument. It returns the hashtable containing the configuration.

new()

    new($command_line_options_h,$system_config_h);

The methods creates a new term extractor and sets oprtions from the command line ($commend_line_options_h) and options defined in the hashtable ($system_config_h) given by address. The methods returns the created object.

termExtraction()

    termExtraction($corpus);

This method applies a extraction process on the corpus $corpus given as parameter, and stores results in the directories specified in the configuration files.

setOptions()

    setOptions($command_line_options_h);

This method creates an option set. It sets the options defined in the hashtable $command_line_options_h (given by reference) and checks if the language parameter is defined in the configuration.

setConfigFiles()

    setConfigFiles($this,$system_config_h);

setLocaleFiles()

    setLocaleFiles($this,$system_config_h);

addOptionsFromFile()

    addOptionsFromFile($this);

setMessageSet()

    setMessageSet($this,$system_config_h);

setTagSet()

    setTagSet($this);

setParsingPatterns()

    setParsingPatterns($this);

setChunkingDataSet()

    setChunkingDataSet($this);

setForbiddenStructureSet()

    setForbiddenStructureSet($this);

loadTestifiedTerms()

    loadTestifiedTerms($this,$process_counter_r,$corpus,$sentence_boundary,$document_boundary,$match_type,$message_set,$display_language);

setTestifiedTermSet()

    setTestifiedTermSet($this,$filtering_lexicon_h,$sentence_boundary,$match_type);

getTestifiedTermSet()

    getTestifiedTermSet($this);

getFSSet()

    getFSSet($this);

getConfigFileSet

    getConfigFileSet($this);

getLocaleFileSet()

    getLocaleFileSet($this);

getResultFileSet()

    getResultFileSet($this);

getOptionSet()

    getOptionSet($this);

This method returns the field OPTION_SET.

getTagSet()

    getTagSet($this);

getChunkingDataSet()

    getChunkingDataSet($this);

getParsingPatternSet()

    getParsingPatternSet($this);

getMessageSet()

    getMessageSet($this);

getTestifiedSet()

    getTestifiedSet($this);

addMessageSetFile()

    addMessageSetFile($this);

displayExtractionResults()

    displayExtractionResults($this,$phrase_set,$corpus,$message_set,$display_language,$default_output);

CONFIGURATION ^

The configuration file of YaTeA is divided into two sections:

CONTRIBUTORS ^

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.

AUTHORS ^

Thierry Hamon <thierry.hamon@univ-paris13.fr> and Sophie Aubin <sophie.aubin@lipn.univ-paris13.fr>

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.

syntax highlighting: