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