Lingua::FreeLing3::MorphAnalyzer - Interface to FreeLing3 Morphological Analyzer
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);
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).
Lingua::FreeLing3
Returns the morphological analyzer object for that language, or undef in case of failure.
AffixAnalysis
MultiwordsDetection
NumbersDetection
PunctuationDetection
DatesDetection
QuantitiesDetection
DictionarySearch
ProbabilityAssignment
NERecognition
DecimalPoint
ThousandPoint
LocutionsFile
InverseDict
RetokContractions
QuantitiesFile
AffixFile
ProbabilityFile
DictionaryFile
NPdataFile
PunctuationFile
ProbabilityThreshold
UserMap
UserMapFile
analyze
Lingua::FreeLing3 (3), freeling, perl(1)
Alberto Manuel Brandão Simões, <ambs@cpan.org>
Jorge Cunha Mendes <jorgecunhamendes@gmail.com>
Copyright (C) 2011-2012 by Projecto Natura
To install Lingua::FreeLing3, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::FreeLing3
CPAN shell
perl -MCPAN -e shell install Lingua::FreeLing3
For more information on module installation, please visit the detailed CPAN module installation guide.