FreeLing  4.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
freeling::dates_module Class Reference

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

#include <dates_modules.h>

Inheritance diagram for freeling::dates_module:
Inheritance graph
[legend]
Collaboration diagram for freeling::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) const

Protected Attributes

std::map< std::wstring, intnMes
 translate month names to numbers
std::map< std::wstring,
std::wstring > 
nDia
 translate weekday names to unified codes
std::map< std::wstring, inttok
 translate particular wstrings to token codes
freeling::regexp RE_Date
freeling::regexp RE_Time1
freeling::regexp RE_Time2
freeling::regexp RE_Roman

Private Member Functions

virtual void ResetActions (dates_status *) const
 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

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

Constructor.

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

Member Function Documentation

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

pure virtual function to be provided by the child class .

Resets automaton internal variables when a new search is started.

Implements freeling::automat< dates_status >.


Member Data Documentation

std::map<std::wstring,std::wstring> freeling::dates_module::nDia [protected]

translate weekday names to unified codes

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

translate month names to numbers

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

translate particular wstrings to token codes


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