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

The abstract class quantities_module generalizes a percentage, ratios, and currency expression recognizer for different languages. More...

#include <quantities_modules.h>

Inheritance diagram for freeling::quantities_module:
Inheritance graph
[legend]
Collaboration diagram for freeling::quantities_module:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 quantities_module ()
 Constructor.

Protected Member Functions

virtual void readConfig (const std::wstring &)

Protected Attributes

std::map< std::wstring, inttok
 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.

Detailed Description

The abstract class quantities_module generalizes a percentage, ratios, and currency expression recognizer for different languages.


Constructor & Destructor Documentation

Constructor.


Member Function Documentation

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 >.


Member Data Documentation

special "magnitude" type for currencies.

std::map<std::wstring,long double> freeling::quantities_module::fract [protected]

translate fraction strings to their nummerical values

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


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