FreeLing  3.0
Public Member Functions | Protected Member Functions | Protected Attributes
numbers_module Class Reference

The abstract class numbers_module generalizes nummeric expression recognizer for different languages. More...

#include <numbers_modules.h>

Inheritance diagram for numbers_module:
Inheritance graph
[legend]
Collaboration diagram for numbers_module:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 numbers_module (const std::wstring &, const std::wstring &)
 Constructor.

Protected Member Functions

virtual void ResetActions ()
 pure virtual function to be provided by the child class .

Protected Attributes

std::wstring MACO_Decimal
std::wstring MACO_Thousand
std::map< std::wstring, float > value
 to map words into numerical values
std::map< std::wstring, int > tok
 to map words into token codes
std::map< int, long double > power
 to map value of power words (billion, million)
long double bilion
 partial value of partially build number expression
long double milion
long double units
int block
int iscode
boost::u32regex RE_number
boost::u32regex RE_code

Detailed Description

The abstract class numbers_module generalizes nummeric expression recognizer for different languages.


Constructor & Destructor Documentation

numbers_module::numbers_module ( const std::wstring &  ,
const std::wstring &   
)

Constructor.


Member Function Documentation

virtual void numbers_module::ResetActions ( ) [protected, virtual]

pure virtual function to be provided by the child class .

Resets automaton internal variables when a new search is started.

Implements automat.

Reimplemented in numbers_it.


Member Data Documentation

long double numbers_module::bilion [protected]

partial value of partially build number expression

int numbers_module::block [protected]
int numbers_module::iscode [protected]
std::wstring numbers_module::MACO_Decimal [protected]
std::wstring numbers_module::MACO_Thousand [protected]
long double numbers_module::milion [protected]
std::map<int,long double> numbers_module::power [protected]

to map value of power words (billion, million)

boost::u32regex numbers_module::RE_code [protected]
boost::u32regex numbers_module::RE_number [protected]
std::map<std::wstring,int> numbers_module::tok [protected]

to map words into token codes

long double numbers_module::units [protected]
std::map<std::wstring,float> numbers_module::value [protected]

to map words into numerical values


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