|
FreeLing
4.0
|
#include <dates_modules.h>


Public Member Functions | |
| dates_de () | |
| Constructor. | |
Private Member Functions | |
| int | ComputeToken (int, sentence::iterator &, sentence &) const |
| pure virtual function to be provided by the child class. | |
| void | StateActions (int, int, int, sentence::const_iterator, dates_status *) const |
| pure virtual function to be provided by the child class. | |
| void | SetMultiwordAnalysis (sentence::iterator, int, const dates_status *) const |
| pure virtual function to be provided by the child class. | |
| std::wstring | tokenName (const int token) const |
| std::wstring | stateName (const int state) const |
Private Attributes | |
| std::map< std::wstring, int > | nNumbers |
| translate number names to numbers | |
| int | lastValue |
| stocks numeric values for cases like "um 10 nach 4" or "um 10" when we do not know yet whether its 10 hours or 10 minutes | |
| std::map< int, std::wstring > | stateNames |
| std::map< int, std::wstring > | tokenNames |
Constructor.
| int freeling::dates_de::ComputeToken | ( | int | , |
| sentence::iterator & | , | ||
| sentence & | |||
| ) | const [private, virtual] |
pure virtual function to be provided by the child class.
Computes token code for current word in current state.
Implements freeling::automat< dates_status >.
| void freeling::dates_de::SetMultiwordAnalysis | ( | sentence::iterator | , |
| int | , | ||
| const dates_status * | |||
| ) | const [private, virtual] |
pure virtual function to be provided by the child class.
Sets analysis for pattern identified as a multiword.
Implements freeling::automat< dates_status >.
| void freeling::dates_de::StateActions | ( | int | , |
| int | , | ||
| int | , | ||
| sentence::const_iterator | , | ||
| dates_status * | |||
| ) | const [private, virtual] |
pure virtual function to be provided by the child class.
Performs appropriate internal actions, given origin and destinanation states, token code and word.
Implements freeling::automat< dates_status >.
| std::wstring freeling::dates_de::stateName | ( | const int | state | ) | const [private] |
| std::wstring freeling::dates_de::tokenName | ( | const int | token | ) | const [private] |
int freeling::dates_de::lastValue [mutable, private] |
stocks numeric values for cases like "um 10 nach 4" or "um 10" when we do not know yet whether its 10 hours or 10 minutes
std::map<std::wstring,int> freeling::dates_de::nNumbers [private] |
translate number names to numbers
std::map<int, std::wstring> freeling::dates_de::stateNames [private] |
std::map<int, std::wstring> freeling::dates_de::tokenNames [private] |
1.7.6.1