FreeLing  3.1
Public Member Functions | Public Attributes
freeling::maco_options Class Reference

Class maco_options implements a set of specific options of the morphological analyzer. More...

#include <maco_options.h>

Collaboration diagram for freeling::maco_options:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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


Constructor & Destructor Documentation

freeling::maco_options::maco_options ( const std::wstring &  lg)

constructor

Create an options set for morpho analyzer.

Initialize with default values.


Member Function Documentation

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_nummerical_points ( const std::wstring &  dec,
const std::wstring &  tho 
)

Member Data Documentation

Morhpological analyzer active modules.

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

module-specific parameters for number recognition

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

module-specific parameters for dictionary

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

Morphological analyzer modules configuration/data files.

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

module-specific parameters for probabilities

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().

Referenced by freeling::maco::maco().


The documentation for this class was generated from the following files: