#include <disambiguator.h>
Public Member Functions | |
disambiguator (const std::string &, const std::string &, double, int) | |
Constructor. | |
~disambiguator () | |
Destructor. | |
void | analyze (std::list< sentence > &) const |
word sense disambiguation for each word in given sentences | |
std::list< sentence > | analyze (const std::list< sentence > &) const |
Return annotated copy (useful for perl/python/java APIs). | |
Private Member Functions | |
std::string | convert_synset (const std::string &) const |
removal of trailing -a, -n, -v, or -r from synset code |
disambiguator::disambiguator | ( | const std::string & | , | |
const std::string & | , | |||
double | , | |||
int | ||||
) |
Constructor.
disambiguator::~disambiguator | ( | ) |
Destructor.
std::list<sentence> disambiguator::analyze | ( | const std::list< sentence > & | ) | const |
Return annotated copy (useful for perl/python/java APIs).
void disambiguator::analyze | ( | std::list< sentence > & | ) | const |
word sense disambiguation for each word in given sentences
std::string disambiguator::convert_synset | ( | const std::string & | ) | const [private] |
removal of trailing -a, -n, -v, or -r from synset code