FreeLing  4.0
Public Member Functions | Protected Member Functions | Protected Attributes
freeling::numbers_module Class Reference

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

#include <numbers_modules.h>

Inheritance diagram for freeling::numbers_module:
Inheritance graph
[legend]
Collaboration diagram for freeling::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 (numbers_status *) const
 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, inttok
 to map words into token codes
std::map< int, long double > power
 to map value of power words (billion, million)
freeling::regexp RE_code
freeling::regexp RE_number
freeling::regexp RE_number_neg

Detailed Description

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


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

virtual void freeling::numbers_module::ResetActions ( numbers_status ) const [protected, virtual]

pure virtual function to be provided by the child class .

Resets automaton internal variables when a new search is started.

Implements freeling::automat< numbers_status >.

Reimplemented in freeling::numbers_it.


Member Data Documentation

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

to map value of power words (billion, million)

std::map<std::wstring,int> freeling::numbers_module::tok [protected]

to map words into token codes

std::map<std::wstring,float> freeling::numbers_module::value [protected]

to map words into numerical values


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