|
FreeLing
3.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 | value1 |
| values for ratios | |
| std::wstring | value2 |
| std::wstring | currency_key |
| special "magnitude" type for currencies. | |
| std::wstring | unitType |
| std::wstring | unitCode |
| auxiliary for storing standarized unit description | |
Private Member Functions | |
| virtual void | ResetActions () |
| pure virtual function to be provided by the child class . | |
| virtual void | SetMultiwordAnalysis (sentence::iterator, int) |
| 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 quantities_module::readConfig | ( | const std::wstring & | ) | [protected, virtual] |
| virtual void quantities_module::ResetActions | ( | ) | [private, virtual] |
pure virtual function to be provided by the child class .
Resets automaton internal variables when a new search is started.
Implements automat.
| virtual void quantities_module::SetMultiwordAnalysis | ( | sentence::iterator | , |
| int | |||
| ) | [private, virtual] |
pure virtual function to be provided by the child class.
Sets analysis for pattern identified as a multiword.
Implements automat.
std::wstring quantities_module::currency_key [protected] |
special "magnitude" type for currencies.
std::map<std::wstring,long double> quantities_module::fract [protected] |
translate fraction strings to their nummerical values
locutions quantities_module::measures [protected] |
sub module of locutions class to recognize complex measure units (oz_per_square_inch)
std::map<std::wstring,int> quantities_module::tok [protected] |
translate particular strings to token codes
std::wstring quantities_module::unitCode [protected] |
auxiliary for storing standarized unit description
std::map<std::wstring,std::wstring> quantities_module::units [protected] |
list of measure units and their lexical realizations
std::wstring quantities_module::unitType [protected] |
std::wstring quantities_module::value1 [protected] |
values for ratios
std::wstring quantities_module::value2 [protected] |
1.7.6.1