The class dates provides a wrapper to transparently create and access a dates_module, a temporal expression recognizer for the appropriate language. More...
#include <dates.h>
Public Member Functions | |
dates (const std::string &) | |
Constructor. | |
~dates () | |
Destructor. | |
void | annotate (sentence &) |
Detect date/time expressions in sentence using default options. | |
Private Attributes | |
dates_module * | who |
remember which module is doing the real work. |
The class dates provides a wrapper to transparently create and access a dates_module, a temporal expression recognizer for the appropriate language.
dates::dates | ( | const std::string & | Lang | ) |
Constructor.
Create the appropriate dates_module (according to received options), and create a wrapper to access it.
References who.
dates::~dates | ( | ) |
void dates::annotate | ( | sentence & | s | ) |
Detect date/time expressions in sentence using default options.
wrapper methods: just call the wrapped dates_module.
References automat::annotate(), and who.
Referenced by maco::analyze().
dates_module* dates::who [private] |
remember which module is doing the real work.
Referenced by annotate(), dates(), and ~dates().