Class senses implements a sense annotator. More...
#include <senses.h>
Public Member Functions | |
senses (const std::string &, bool) | |
Constructor. | |
~senses () | |
Destructor. | |
void | analyze (std::list< sentence > &) |
sense annotate selected analysis for each word in given sentences | |
std::list< sentence > | analyze (const std::list< sentence > &) |
sense annotate selected analysis for each word in given sentence, return copy (useful for python API) | |
Private Attributes | |
semanticDB * | semdb |
bool | duplicate |
flag to remember whether analysis are duplicated for each possible sense |
Class senses implements a sense annotator.
senses::senses | ( | const std::string & | , | |
bool | ||||
) |
Constructor.
senses::~senses | ( | ) |
Destructor.
References semdb.
std::list< sentence > senses::analyze | ( | const std::list< sentence > & | ls | ) |
sense annotate selected analysis for each word in given sentence, return copy (useful for python API)
Analyze given sentences.
Return analyzed copy.
References analyze().
void senses::analyze | ( | std::list< sentence > & | ls | ) |
sense annotate selected analysis for each word in given sentences
Analyze given sentences.
References duplicate, semanticDB::get_word_senses(), semdb, and TRACE.
Referenced by analyze().
bool senses::duplicate [private] |
flag to remember whether analysis are duplicated for each possible sense
Referenced by analyze().
semanticDB* senses::semdb [private] |