The class nec implements a ML-based NE classificator. More...
#include <nec.h>
Public Member Functions | |
nec (const std::string &, const std::string &) | |
Constructor. | |
~nec () | |
Destructor. | |
void | analyze (std::list< sentence > &) const |
Classify NEs in given sentence. | |
std::list< sentence > | analyze (const std::list< sentence > &) const |
Return annotated copy (useful for perl/python/java APIs). | |
Private Attributes | |
fex * | extractor |
feature extractor | |
std::map< std::string, int > | lexicon |
lexicon to translate symbolic features to integer indexes | |
adaboost * | classifier |
adaboost classifier | |
std::string | NPtag |
The class nec implements a ML-based NE classificator.
nec::nec | ( | const std::string & | tag, | |
const std::string & | filepref | |||
) |
Constructor.
Create a named entity classification module, loading appropriate files.
References classifier, extractor, and TRACE.
nec::~nec | ( | ) |
std::list<sentence> nec::analyze | ( | const std::list< sentence > & | ) | const |
Return annotated copy (useful for perl/python/java APIs).
void nec::analyze | ( | std::list< sentence > & | ls | ) | const |
Classify NEs in given sentence.
References classifier, extractor, NPtag, TRACE, and TRACE_SENTENCE.
adaboost* nec::classifier [private] |
fex* nec::extractor [private] |
std::map<std::string,int> nec::lexicon [private] |
lexicon to translate symbolic features to integer indexes
std::string nec::NPtag [private] |
Referenced by analyze().