FreeLing
3.1
|
This template is used by numbers, quantities, dates, and ner classes to dinamycally create the appropriate subclass of numbers_module, quantities_module, dates_module, or ner_module (according to received options). More...
#include <factory.h>
Public Member Functions | |
factory () | |
Constructor, the module is created by the class deriving the factory. | |
~factory () | |
Destructor, delete the module. | |
void | analyze (sentence &s) const |
analyze given sentence, calling the created module | |
void | analyze (list< sentence > &ls) const |
analyze given sentences, calling the created module | |
sentence | analyze (const sentence &s) const |
analyze given sentence, calling the created module, return copy | |
list< sentence > | analyze (const list< sentence > &ls) const |
analyze given sentence, calling the created module, return copy | |
Protected Attributes | |
T * | who |
remember which module is doing the real work. |
This template is used by numbers, quantities, dates, and ner classes to dinamycally create the appropriate subclass of numbers_module, quantities_module, dates_module, or ner_module (according to received options).
freeling::factory< T >::factory | ( | ) | [inline] |
Constructor, the module is created by the class deriving the factory.
freeling::factory< T >::~factory | ( | ) | [inline] |
Destructor, delete the module.
void freeling::factory< T >::analyze | ( | sentence & | s | ) | const [inline] |
analyze given sentence, calling the created module
Referenced by freeling::maco::analyze().
void freeling::factory< T >::analyze | ( | list< sentence > & | ls | ) | const [inline] |
analyze given sentences, calling the created module
sentence freeling::factory< T >::analyze | ( | const sentence & | s | ) | const [inline] |
analyze given sentence, calling the created module, return copy
list<sentence> freeling::factory< T >::analyze | ( | const list< sentence > & | ls | ) | const [inline] |
analyze given sentence, calling the created module, return copy
T* freeling::factory< T >::who [protected] |
remember which module is doing the real work.