|
FreeLing
3.0
|
Class ner implements a wrapper to transparently create and access a ner_module named entity recognizer. More...
#include <ner.h>

Public Member Functions | |
| ner (const std::wstring &) | |
| Constructor. | |
| ~ner () | |
| Destructor. | |
| void | analyze (sentence &) |
| analyze given sentence | |
| void | analyze (std::list< sentence > &) |
| analyze given sentences | |
| sentence | analyze (const sentence &) |
| analyze sentence, return analyzed copy | |
| std::list< sentence > | analyze (const std::list< sentence > &) |
| analyze sentences, return analyzed copy | |
Private Attributes | |
| ner_module * | who |
| remember which module is doing the real work. | |
Class ner implements a wrapper to transparently create and access a ner_module named entity recognizer.
| ner::ner | ( | const std::wstring & | npFile | ) |
Constructor.
Create the appropriate numbers_module (according to received options), and create a wrapper to access it.
References ERROR_CRASH, util::lowercase(), and util::open_utf8_file().
| ner::~ner | ( | ) |
Destructor.
Destroy the wrapper and the wrapped ner_module.
| void ner::analyze | ( | sentence & | s | ) |
analyze given sentence
wrapper methods: just call the wrapped ner_module.
Referenced by maco::analyze().
| void ner::analyze | ( | std::list< sentence > & | ) |
analyze given sentences
| sentence ner::analyze | ( | const sentence & | s | ) |
analyze sentence, return analyzed copy
| std::list<sentence> ner::analyze | ( | const std::list< sentence > & | ) |
analyze sentences, return analyzed copy
ner_module* ner::who [private] |
remember which module is doing the real work.
1.7.6.1