numbers_es Class Reference

The derived class numbers_es implements a Spanish number recognizer. More...

#include <numbers_modules.h>

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

List of all members.

Public Member Functions

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

Detailed Description

The derived class numbers_es implements a Spanish number recognizer.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Compute the right token code for word j from given state.

Implements automat.

References numbers_module::RE_code, numbers_module::RE_number, TK_code, TK_num, TK_other, numbers_module::tok, and TRACE.

void numbers_es::ResetActions (  )  [private, virtual]

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

Implements automat.

References numbers_module::bilion, numbers_module::block, numbers_module::iscode, numbers_module::milion, and numbers_module::units.

void numbers_es::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, numbers_module::iscode, M1, M1b, numbers_module::milion, S1, S1b, TRACE, numbers_module::units, X1, X3, and X5.

void numbers_es::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 B2, B3, B5, B6, B7, numbers_module::bilion, Bk, numbers_module::block, Bu, COD, CODE, numbers_module::iscode, M1, M1b, M2, M3, M5, M6, M7, numbers_module::MACO_Decimal, numbers_module::MACO_Thousand, numbers_module::milion, Mk, Mu, numbers_module::power, S1, S1b, S2, S3, S5, S6, S7, Sk, Su, TK_bill, TK_mill, TK_num, TRACE, numbers_module::units, numbers_module::value, X1, X3, X4, and X5.


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