FreeLing
3.1
|
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::wstring &) | |
constructor | |
void | set_active_modules (bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool dummy=false) |
Option setting methods provided to ease perl interface generation. | |
void | set_data_files (const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &dummy=L"") |
void | set_nummerical_points (const std::wstring &, const std::wstring &) |
void | set_threshold (double) |
void | set_inverse_dict (bool) |
void | set_retok_contractions (bool) |
Public Attributes | |
std::wstring | Lang |
bool | AffixAnalysis |
Morhpological analyzer active modules. | |
bool | MultiwordsDetection |
bool | NumbersDetection |
bool | PunctuationDetection |
bool | DatesDetection |
bool | QuantitiesDetection |
bool | DictionarySearch |
bool | ProbabilityAssignment |
bool | UserMap |
bool | NERecognition |
std::wstring | LocutionsFile |
Morphological analyzer modules configuration/data files. | |
std::wstring | QuantitiesFile |
std::wstring | AffixFile |
std::wstring | ProbabilityFile |
std::wstring | DictionaryFile |
std::wstring | NPdataFile |
std::wstring | PunctuationFile |
std::wstring | UserMapFile |
std::wstring | Decimal |
module-specific parameters for number recognition | |
std::wstring | Thousand |
double | ProbabilityThreshold |
module-specific parameters for probabilities | |
bool | InverseDict |
module-specific parameters for dictionary | |
bool | RetokContractions |
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
freeling::maco_options::maco_options | ( | const std::wstring & | lg | ) |
constructor
Create an options set for morpho analyzer.
Initialize with default values.
void freeling::maco_options::set_active_modules | ( | bool | umap, |
bool | suf, | ||
bool | mw, | ||
bool | num, | ||
bool | pun, | ||
bool | dat, | ||
bool | qt, | ||
bool | dic, | ||
bool | prb, | ||
bool | ner, | ||
bool | dummy = false |
||
) |
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. Last "dummy" parameter is optional and not used, but accepted for back-compatibility
void freeling::maco_options::set_data_files | ( | const std::wstring & | usr, |
const std::wstring & | loc, | ||
const std::wstring & | qty, | ||
const std::wstring & | suf, | ||
const std::wstring & | prb, | ||
const std::wstring & | dic, | ||
const std::wstring & | nps, | ||
const std::wstring & | pun, | ||
const std::wstring & | dummy = L"" |
||
) |
void freeling::maco_options::set_inverse_dict | ( | bool | b | ) |
void freeling::maco_options::set_nummerical_points | ( | const std::wstring & | dec, |
const std::wstring & | tho | ||
) |
void freeling::maco_options::set_threshold | ( | double | t | ) |
Morhpological analyzer active modules.
Referenced by freeling::maco::maco().
std::wstring freeling::maco_options::AffixFile |
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
std::wstring freeling::maco_options::Decimal |
module-specific parameters for number recognition
Referenced by freeling::maco::maco().
std::wstring freeling::maco_options::DictionaryFile |
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
module-specific parameters for dictionary
Referenced by freeling::maco::maco().
std::wstring freeling::maco_options::Lang |
Referenced by freeling::maco::maco().
std::wstring freeling::maco_options::LocutionsFile |
Morphological analyzer modules configuration/data files.
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
std::wstring freeling::maco_options::NPdataFile |
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
std::wstring freeling::maco_options::ProbabilityFile |
Referenced by freeling::maco::maco().
module-specific parameters for probabilities
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
std::wstring freeling::maco_options::PunctuationFile |
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
std::wstring freeling::maco_options::QuantitiesFile |
Referenced by freeling::maco::maco().
Referenced by freeling::maco::maco().
std::wstring freeling::maco_options::Thousand |
Referenced by freeling::maco::maco().
Referenced by freeling::maco::analyze(), and freeling::maco::maco().
std::wstring freeling::maco_options::UserMapFile |
Referenced by freeling::maco::maco().