dates_en Class Reference

The derived class dates_en implements an English date/time recognizer. More...

#include <dates_modules.h>

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

List of all members.

Public Member Functions

 dates_en ()
 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: day, year, month, hour, minute, etc.
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 token (day, year, month, etc) store that part of the date.
void SetMultiwordAnalysis (sentence::iterator, int)
 Set the appropriate lemma and parole for the new multiword.

Private Attributes

std::map< std::string, int > numDay
 translate day numbers (first, second...) to a number (1, 2...)

Detailed Description

The derived class dates_en implements an English date/time recognizer.


Constructor & Destructor Documentation

dates_en::dates_en (  ) 

Member Function Documentation

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

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

Implements automat.

References A, B, C, CH, CH1, D, DH, DH1, DH1b, E, Eb, Ebb, Ec, F, Fb, G, Gb, Gbb, H, Ha, I, Ic, J, Jb, K, M, O, dates_module::RE_Date, dates_module::RE_Time1, dates_module::RE_Time2, TK_centnum, TK_date, TK_daynum, TK_hhmm, TK_hour, TK_hournum, TK_kyearnum, TK_min, TK_minnum, TK_monthnum, TK_number, TK_other, TK_yearnum, dates_module::tok, and TRACE.

void dates_en::ResetActions (  )  [private, virtual]
void dates_en::SetMultiwordAnalysis ( sentence::iterator  i,
int  fstate 
) [private, virtual]
void dates_en::StateActions ( int  origin,
int  state,
int  token,
sentence::const_iterator  j 
) [private, virtual]

Member Data Documentation

std::map<std::string,int> dates_en::numDay [private]

translate day numbers (first, second...) to a number (1, 2...)

Referenced by dates_en(), and StateActions().


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