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',
OrthographicCorrection => 1, CorrectorFile => 'corrector/corrector.dat',
NERecognition => 1, 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).
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
(boolean)DecimalPoint
(string)ThousandPoint
(string)LocutionsFile
(file)InverseDict
(boolean)RetokContractions
(boolean)QuantitiesFile
(file)AffixFile
(file)ProbabilityFile
(file)DictionaryFile
(file)NPdataFile
(file)PunctuationFile
(file)ProbabilityThreshold
(real)UserMap
(boolean)UserMapFile
(file)
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