PLearn 0.1
|
Go to the source code of this file.
Classes | |
class | PLearn::WordNetSenseDictionary |
class | PLearn::DiffTemplate< ObjectType, WordNetSenseDictionary > |
class | PLearn::TypeTraits< WordNetSenseDictionary > |
Namespaces | |
namespace | PLearn |
< for swap | |
Defines | |
#define | WN_ROOT_NODE "wn_root_node" |
#define | WN_NOUN_NODE "wn_noun_node" |
#define | WN_VERB_NODE "wn_verb_node" |
#define | WN_ADJ_NODE "wn_adj_node" |
#define | WN_ADV_NODE "wn_adv_node" |
Functions | |
char * | PLearn::cstr (string &str) |
Takes a string and returns a char array of that string. | |
string | PLearn::getSynsetKey (SynsetPtr ssp) |
Returns a synset key from a SynsetPtr. | |
SynsetPtr | PLearn::getSynsetPtr (string synset_key) |
Returns a SynsetPtr from a synset key. | |
void | PLearn::extractSenses (string word, int wn_pos, string symbol_type, TVec< string > &senses, TVec< int > &tagcnts, TVec< TVec< string > > &ancestors, bool extract_ancestors=false) |
Extract senses for a word and a certain POS tag, as a certain symbol type. | |
void | PLearn::extractAncestors (TVec< SynsetPtr > anc, TVec< TVec< string > > &anc_str, string root_node=WN_ROOT_NODE) |
Extracts synset. | |
string | PLearn::stemWord (string word) |
Stems a word. | |
string | PLearn::stemWord (string word, int wn_pos) |
Stems a word, according to a POS. | |
void | PLearn::stemsOfWord (string word, int wn_pos, TVec< string > &stems) |
Lists the possible stemmed variation of a word. | |
void | PLearn::stemsOfWord (string word, TVec< string > &stems) |
Lists the possible stemmed variation of a word using its POS. | |
Object * | PLearn::toObjectPtr (const WordNetSenseDictionary &o) |
PStream & | PLearn::operator>> (PStream &in, WordNetSenseDictionary &o) |
PStream & | PLearn::operator>> (PStream &in, WordNetSenseDictionary *&o) |
PStream & | PLearn::operator<< (PStream &out, const WordNetSenseDictionary &o) |
PStream & | PLearn::operator>> (PStream &in, PP< WordNetSenseDictionary > &o) |
template<class ObjectType > | |
int | PLearn::diff (const string &refer, const string &other, const Option< ObjectType, WordNetSenseDictionary > *opt, PLearnDiff *diffs) |
Definition in file WordNetSenseDictionary.h.
#define WN_ADJ_NODE "wn_adj_node" |
Definition at line 52 of file WordNetSenseDictionary.h.
Referenced by PLearn::extractSenses().
#define WN_ADV_NODE "wn_adv_node" |
Definition at line 53 of file WordNetSenseDictionary.h.
Referenced by PLearn::extractSenses().
#define WN_NOUN_NODE "wn_noun_node" |
Definition at line 50 of file WordNetSenseDictionary.h.
Referenced by PLearn::extractSenses().
#define WN_ROOT_NODE "wn_root_node" |
Definition at line 49 of file WordNetSenseDictionary.h.
Referenced by PLearn::WordNetSenseDictionary::getSensesFromWordNet(), and PLearn::WordNetSenseDictionary::rootNode().
#define WN_VERB_NODE "wn_verb_node" |
Definition at line 51 of file WordNetSenseDictionary.h.
Referenced by PLearn::extractSenses().