quantities_default Class Reference

The derived class quantities_default implements a default quantities recognizer (only percentages are recognized). More...

#include <quantities_modules.h>

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

List of all members.

Public Member Functions

 quantities_default (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: value1, value2 (for ratios).
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 with an informative.
void SetMultiwordAnalysis (sentence::iterator, int)
 Set the appropriate lemma and parole for the new multiword.

Detailed Description

The derived class quantities_default implements a default quantities recognizer (only percentages are recognized).


Constructor & Destructor Documentation

quantities_default::quantities_default ( const std::string &  CurrFile  ) 

Constructor.

Create a default quantities recognizer.

References A, B, C, automat::Final, automat::initialState, MAX_STATES, MAX_TOKENS, STOP, automat::stopState, TK_number, TK_pc, quantities_module::tok, TRACE, and automat::trans.


Member Function Documentation

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

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

Implements automat.

References TK_number, TK_other, quantities_module::tok, and TRACE.

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

Reset acumulators used by state actions: value1, value2 (for ratios).

Implements automat.

References quantities_module::value1, and quantities_module::value2.

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

Set the appropriate lemma and parole for the new multiword.

Implements automat.

References TRACE, quantities_module::value1, and quantities_module::value2.

void quantities_default::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 with an informative.

Implements automat.

References B, C, TK_number, TK_pc, TRACE, quantities_module::value1, and quantities_module::value2.


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