Class maco implements the morphological analyzer, which uses all the specific analyzers: dates, numbers, dictionary, etc. More...
#include <maco.h>
Public Member Functions | |
maco (const maco_options &) | |
Constructor. | |
~maco () | |
Destructor. | |
void | analyze (std::list< sentence > &) |
analyze given sentences | |
std::list< sentence > | analyze (const std::list< sentence > &) |
analyze sentences, return analyzed copy | |
Private Attributes | |
maco_options | defaultOpt |
creation options | |
locutions * | loc |
dictionary * | dico |
numbers * | numb |
dates * | date |
quantities * | quant |
punts * | punt |
probabilities * | prob |
ner * | npm |
corrector * | correct |
Class maco implements the morphological analyzer, which uses all the specific analyzers: dates, numbers, dictionary, etc.
maco::maco | ( | const maco_options & | opts | ) |
Constructor.
Create the morphological analyzer, and all required recognizers and modules.
References maco_options::AffixAnalysis, maco_options::AffixFile, correct, maco_options::CorrectorFile, date, maco_options::DatesDetection, maco_options::Decimal, dico, maco_options::DictionaryFile, maco_options::DictionarySearch, maco_options::Lang, loc, maco_options::LocutionsFile, maco_options::MultiwordsDetection, NER_BASIC, NER_BIO, maco_options::NERecognition, maco_options::NPdataFile, npm, numb, maco_options::NumbersDetection, maco_options::OrthographicCorrection, prob, maco_options::ProbabilityAssignment, maco_options::ProbabilityFile, maco_options::ProbabilityThreshold, maco_options::PunctuationDetection, maco_options::PunctuationFile, punt, quant, maco_options::QuantitiesDetection, maco_options::QuantitiesFile, and maco_options::Thousand.
maco::~maco | ( | ) |
std::list< sentence > maco::analyze | ( | const std::list< sentence > & | ls | ) |
analyze sentences, return analyzed copy
Analyze given sentences, return analyzed copy.
References analyze().
void maco::analyze | ( | std::list< sentence > & | ls | ) |
analyze given sentences
Analyze given sentences.
References probabilities::annotate(), corrector::annotate(), quantities::annotate(), ner::annotate(), automat::annotate(), dictionary::annotate(), dates::annotate(), punts::annotate(), numbers::annotate(), correct, date, maco_options::DatesDetection, defaultOpt, dico, maco_options::DictionarySearch, loc, maco_options::MultiwordsDetection, NER_NONE, maco_options::NERecognition, npm, numb, maco_options::NumbersDetection, maco_options::OrthographicCorrection, prob, maco_options::ProbabilityAssignment, maco_options::PunctuationDetection, punt, quant, maco_options::QuantitiesDetection, and TRACE.
Referenced by analyze().
corrector* maco::correct [private] |
dates* maco::date [private] |
maco_options maco::defaultOpt [private] |
creation options
Referenced by analyze().
dictionary* maco::dico [private] |
numbers* maco::numb [private] |
probabilities* maco::prob [private] |
punts* maco::punt [private] |
quantities* maco::quant [private] |