numbers_it Class Reference

The derived class numbers_it implements a Italian number recognizer. More...

#include <numbers_modules.h>

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

List of all members.

Public Member Functions

 numbers_it (const std::string &, const std::string &)
 Constructor.

Private Member Functions

int ComputeToken (int, sentence::iterator &, sentence &)
 Compute the right token code for word j from given state.
void ResetActions ()
 Reset acumulators used by state actions: bilion, milion, units.
void StateActions (int, int, int, sentence::const_iterator)
 Perform necessary actions in "state" reached from state "origin" via word j interpreted as code "token": Basically, when reaching a state, update current nummerical value.
void SetMultiwordAnalysis (sentence::iterator, int)
 Set the appropriate lemma and parole for the new multiword.

Private Attributes

long double hundreds
long double thousands
long double floatUnits

Detailed Description

The derived class numbers_it implements a Italian number recognizer.


Constructor & Destructor Documentation

numbers_it::numbers_it ( const std::string &  dec,
const std::string &  thou 
)

Member Function Documentation

int numbers_it::ComputeToken ( int  state,
sentence::iterator &  j,
sentence &  se 
) [private, virtual]
void numbers_it::ResetActions (  )  [private, virtual]

Reset acumulators used by state actions: bilion, milion, units.

Implements automat.

References numbers_module::bilion, numbers_module::block, floatUnits, hundreds, numbers_module::iscode, numbers_module::milion, thousands, and numbers_module::units.

void numbers_it::SetMultiwordAnalysis ( sentence::iterator  i,
int  fstate 
) [private, virtual]

Set the appropriate lemma and parole for the new multiword.

Implements automat.

References numbers_module::bilion, CODE, hundreds, numbers_module::iscode, numbers_module::milion, specialState, thousands, TRACE, and numbers_module::units.

void numbers_it::StateActions ( int  origin,
int  state,
int  token,
sentence::const_iterator  j 
) [private, virtual]

Perform necessary actions in "state" reached from state "origin" via word j interpreted as code "token": Basically, when reaching a state, update current nummerical value.

Implements automat.

References numbers_module::bilion, COD, CODE, hundreds, numbers_module::iscode, numbers_module::MACO_Decimal, numbers_module::MACO_Thousand, numbers_module::milion, numbers_module::power, thousands, TK_c, TK_mil, TK_mill, TK_milr, TK_num, TRACE, TUH1, TUH2, TUH3, TUH4, TUH5, TUH6, TUH7, TUHT1, TUHT2, TUHT3, TUHT4, TUHT5, TUHT6, TUHT7, TUHTM1, TUHTM2, TUHTM3, TUHTM4, TUHTM5, TUHTM6, TUHTM7, TUHTMlrd1, TUHTMlrd2, TUHTMlrd3, TUHTMlrd4, TUHTMlrd5, TUHTMlrd6, TUHTMlrd7, numbers_module::units, and numbers_module::value.

Referenced by ComputeToken().


Member Data Documentation

long double numbers_it::floatUnits [private]

Referenced by ResetActions().

long double numbers_it::hundreds [private]
long double numbers_it::thousands [private]

The documentation for this class was generated from the following files:
Generated on Tue Jul 27 16:29:33 2010 for FreeLing by  doxygen 1.6.3