Class maco_options implements a set of specific options of the morphological analyzer. More...
#include <maco_options.h>
Public Member Functions | |
maco_options (const std::string &) | |
constructor | |
void | set_active_modules (bool, bool, bool, bool, bool, bool, bool, bool, int, bool) |
Option setting methods provided to ease perl interface generation. | |
void | set_nummerical_points (const std::string &, const std::string &) |
void | set_data_files (const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, const std::string &) |
void | set_threshold (double) |
Public Attributes | |
std::string | Lang |
bool | AffixAnalysis |
Morphological analyzer options. | |
bool | MultiwordsDetection |
bool | NumbersDetection |
bool | PunctuationDetection |
bool | DatesDetection |
bool | QuantitiesDetection |
bool | DictionarySearch |
bool | ProbabilityAssignment |
bool | OrthographicCorrection |
int | NERecognition |
std::string | Decimal |
Morphological analyzer options. | |
std::string | Thousand |
std::string | LocutionsFile |
Morphological analyzer options. | |
std::string | QuantitiesFile |
std::string | AffixFile |
std::string | ProbabilityFile |
std::string | DictionaryFile |
std::string | NPdataFile |
std::string | PunctuationFile |
std::string | CorrectorFile |
double | ProbabilityThreshold |
Class maco_options implements a set of specific options of the morphological analyzer.
Other modules do not have such a class because they deal with a reduced number of options
maco_options::maco_options | ( | const std::string & | lg | ) |
constructor
Create an options set for morpho analyzer.
Initialize with default values.
References AffixAnalysis, AffixFile, CorrectorFile, DatesDetection, Decimal, DictionaryFile, DictionarySearch, Lang, LocutionsFile, MultiwordsDetection, NERecognition, NPdataFile, NumbersDetection, OrthographicCorrection, ProbabilityAssignment, ProbabilityFile, ProbabilityThreshold, PunctuationDetection, PunctuationFile, QuantitiesDetection, QuantitiesFile, and Thousand.
void maco_options::set_active_modules | ( | bool | suf, | |
bool | mw, | |||
bool | num, | |||
bool | pun, | |||
bool | dat, | |||
bool | qt, | |||
bool | dic, | |||
bool | prb, | |||
int | ner, | |||
bool | orto | |||
) |
Option setting methods provided to ease perl interface generation.
Since option data members are public and can be accessed directly from C++, the following methods are not necessary, but may become convenient sometimes.
References AffixAnalysis, DatesDetection, DictionarySearch, MultiwordsDetection, NERecognition, NumbersDetection, OrthographicCorrection, ProbabilityAssignment, PunctuationDetection, and QuantitiesDetection.
void maco_options::set_data_files | ( | const std::string & | loc, | |
const std::string & | qty, | |||
const std::string & | suf, | |||
const std::string & | prb, | |||
const std::string & | dic, | |||
const std::string & | nps, | |||
const std::string & | pun, | |||
const std::string & | corr | |||
) |
References AffixFile, CorrectorFile, DictionaryFile, LocutionsFile, NPdataFile, ProbabilityFile, PunctuationFile, and QuantitiesFile.
void maco_options::set_nummerical_points | ( | const std::string & | dec, | |
const std::string & | tho | |||
) |
void maco_options::set_threshold | ( | double | t | ) |
References ProbabilityThreshold.
Morphological analyzer options.
Referenced by maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::AffixFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
std::string maco_options::CorrectorFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::Decimal |
Morphological analyzer options.
Referenced by maco::maco(), maco_options(), and set_nummerical_points().
std::string maco_options::DictionaryFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::Lang |
Referenced by maco::maco(), and maco_options().
std::string maco_options::LocutionsFile |
Morphological analyzer options.
Referenced by maco::maco(), maco_options(), and set_data_files().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::NPdataFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::ProbabilityFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
Referenced by maco::maco(), maco_options(), and set_threshold().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::PunctuationFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
Referenced by maco::analyze(), maco::maco(), maco_options(), and set_active_modules().
std::string maco_options::QuantitiesFile |
Referenced by maco::maco(), maco_options(), and set_data_files().
std::string maco_options::Thousand |
Referenced by maco::maco(), maco_options(), and set_nummerical_points().