NAME

Lingua::FreeLing3::MorphAnalyzer - Interface to FreeLing3 Morphological Analyzer

SYNOPSIS

 use Lingua::FreeLing3::MorphAnalyzer;

 my $morph = Lingua::FreeLing3::MorphAnalyzer->new("es",
  AffixAnalysis         => 1, AffixFile       => 'afixos.dat',
  QuantitiesDetection   => 0, QuantitiesFile  => "",
  MultiwordsDetection   => 1, LocutionsFile => 'locucions.dat',
  NumbersDetection      => 1,
  PunctuationDetection => 1, PunctuationFile => '../common/punct.dat',
  DatesDetection        => 1,
  DictionarySearch      => 1, DictionaryFile  => 'dicc.src',
  ProbabilityAssignment => 1, ProbabilityFile => 'probabilitats.dat',
  NERecognition => 'NER_BASIC', NPdataFile => 'np.dat',
);

$sentence = $morph->analyze($sentence);

DESCRIPTION

Interface to the FreeLing3 Morphological Analyzer library.

new

Object constructor. One argument is required: the languge code (Lingua::FreeLing3 will search for the data file) or the full or relative path to the data file. It also receives a lot of options that are explained below.

Returns the morphological analyzer object for that language, or undef in case of failure.

AffixAnalysis (boolean)
MultiwordsDetection (boolean)
NumbersDetection (boolean)
PunctuationDetection (boolean)
DatesDetection (boolean)
QuantitiesDetection (boolean)
DictionarySearch (boolean)
ProbabilityAssignment (boolean)
NERecognition (option)

NER_BASIC / NER_BIO / NER_NONE

Decimal (string)
Thousand (string)
LocutionsFile (file)
QuantitiesFile (file)
AffixFile (file)
ProbabilityFile (file)
DictionaryFile (file)
NPdataFile (file)
PunctuationFile (file)
ProbabilityThreshold (real)

analyze

SEE ALSO

Lingua::FreeLing3 (3), freeling, perl(1)

AUTHOR

Alberto Manuel Brandão Simões, <ambs@cpan.org>

Jorge Cunha Mendes <jorgecunhamendes@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011-2012 by Projecto Natura