| FreeLing
    4.0
    | 
The abstract class quantities_module generalizes a percentage, ratios, and currency expression recognizer for different languages. More...
#include <quantities_modules.h>


| Public Member Functions | |
| quantities_module () | |
| Constructor. | |
| Protected Member Functions | |
| virtual void | readConfig (const std::wstring &) | 
| Protected Attributes | |
| std::map< std::wstring, int > | tok | 
| translate particular strings to token codes | |
| std::map< std::wstring, long double > | fract | 
| translate fraction strings to their nummerical values | |
| std::map< std::wstring, std::wstring > | units | 
| list of measure units and their lexical realizations | |
| locutions | measures | 
| sub module of locutions class to recognize complex measure units (oz_per_square_inch) | |
| std::wstring | currency_key | 
| special "magnitude" type for currencies. | |
| Private Member Functions | |
| virtual void | ResetActions (quantities_status *) const | 
| pure virtual function to be provided by the child class . | |
| virtual void | SetMultiwordAnalysis (sentence::iterator, int, const quantities_status *) const | 
| pure virtual function to be provided by the child class. | |
The abstract class quantities_module generalizes a percentage, ratios, and currency expression recognizer for different languages.
Constructor.
| virtual void freeling::quantities_module::readConfig | ( | const std::wstring & | ) |  [protected, virtual] | 
| virtual void freeling::quantities_module::ResetActions | ( | quantities_status * | ) | const  [private, virtual] | 
pure virtual function to be provided by the child class .
Resets automaton internal variables when a new search is started.
Implements freeling::automat< quantities_status >.
| virtual void freeling::quantities_module::SetMultiwordAnalysis | ( | sentence::iterator | , | 
| int | , | ||
| const quantities_status * | |||
| ) | const  [private, virtual] | 
pure virtual function to be provided by the child class.
Sets analysis for pattern identified as a multiword.
Implements freeling::automat< quantities_status >.
| std::wstring freeling::quantities_module::currency_key  [protected] | 
special "magnitude" type for currencies.
| std::map<std::wstring,long double> freeling::quantities_module::fract  [protected] | 
translate fraction strings to their nummerical values
| locutions freeling::quantities_module::measures  [protected] | 
sub module of locutions class to recognize complex measure units (oz_per_square_inch)
| std::map<std::wstring,int> freeling::quantities_module::tok  [protected] | 
translate particular strings to token codes
| std::map<std::wstring,std::wstring> freeling::quantities_module::units  [protected] | 
list of measure units and their lexical realizations
 1.7.6.1
 1.7.6.1