FreeLing  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
dates_module Class Reference

The abstract class dates_module generalizes temporal expression recognizer for different languages. More...

#include <dates_modules.h>

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

List of all members.

Public Member Functions

 dates_module (const std::wstring &, const std::wstring &, const std::wstring &, const std::wstring &)
 Constructor.
virtual ~dates_module ()

Protected Member Functions

std::wstring normalize (const std::wstring &in, int offs=0)

Protected Attributes

std::map< std::wstring, int > nMes
 translate month names to numbers
std::map< std::wstring,
std::wstring > 
nDia
 translate weekday names to unified codes
std::wstring century
 interpretation of the date-time expression
std::wstring year
std::wstring month
std::wstring day
std::wstring weekday
std::wstring hour
std::wstring minute
std::wstring meridian
int temp
 auxiliary for interpretation building
int sign
int daytemp
bool inGbb
std::map< std::wstring, int > tok
 translate particular wstrings to token codes
boost::u32regex RE_Date
boost::u32regex RE_Time1
boost::u32regex RE_Time2
boost::u32regex RE_Roman
boost::wsmatch rem

Private Member Functions

virtual void ResetActions ()
 pure virtual function to be provided by the child class .

Detailed Description

The abstract class dates_module generalizes temporal expression recognizer for different languages.


Constructor & Destructor Documentation

dates_module::dates_module ( const std::wstring &  ,
const std::wstring &  ,
const std::wstring &  ,
const std::wstring &   
)

Constructor.

virtual dates_module::~dates_module ( ) [inline, virtual]

Member Function Documentation

std::wstring dates_module::normalize ( const std::wstring &  in,
int  offs = 0 
) [protected]
virtual void dates_module::ResetActions ( ) [private, virtual]

pure virtual function to be provided by the child class .

Resets automaton internal variables when a new search is started.

Implements automat.


Member Data Documentation

std::wstring dates_module::century [protected]

interpretation of the date-time expression

std::wstring dates_module::day [protected]
int dates_module::daytemp [protected]
std::wstring dates_module::hour [protected]
std::wstring dates_module::meridian [protected]
std::wstring dates_module::minute [protected]
std::wstring dates_module::month [protected]
std::map<std::wstring,std::wstring> dates_module::nDia [protected]

translate weekday names to unified codes

std::map<std::wstring,int> dates_module::nMes [protected]

translate month names to numbers

boost::u32regex dates_module::RE_Date [protected]
boost::u32regex dates_module::RE_Roman [protected]
boost::u32regex dates_module::RE_Time1 [protected]
boost::u32regex dates_module::RE_Time2 [protected]
boost::wsmatch dates_module::rem [protected]
int dates_module::sign [protected]
int dates_module::temp [protected]

auxiliary for interpretation building

std::map<std::wstring,int> dates_module::tok [protected]

translate particular wstrings to token codes

std::wstring dates_module::weekday [protected]
std::wstring dates_module::year [protected]

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