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