FreeLing
4.0
|
The derived class numbers_default implements a default number recognizer (only numbers in digits are recognized). More...
#include <numbers_modules.h>
Public Member Functions | |
numbers_default (const std::wstring &, const std::wstring &) | |
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, numbers_status *) const |
pure virtual function to be provided by the child class. | |
void | SetMultiwordAnalysis (sentence::iterator, int, const numbers_status *) const |
pure virtual function to be provided by the child class. |
The derived class numbers_default implements a default number recognizer (only numbers in digits are recognized).
freeling::numbers_default::numbers_default | ( | const std::wstring & | , |
const std::wstring & | |||
) |
Constructor.
int freeling::numbers_default::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< numbers_status >.
void freeling::numbers_default::SetMultiwordAnalysis | ( | sentence::iterator | , |
int | , | ||
const numbers_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< numbers_status >.
void freeling::numbers_default::StateActions | ( | int | , |
int | , | ||
int | , | ||
sentence::const_iterator | , | ||
numbers_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< numbers_status >.