An NLTK interface for WordNet
WordNet is a lexical database of English. Using synsets, helps find conceptual relationships between words such as hypernyms, hyponyms, synonyms, antonyms etc.
For details about WordNet see: http://wordnet.princeton.edu/
This module also allows you to find lemmas in languages other than English from the Open Multilingual Wordnet http://compling.hss.ntu.edu.sg/omw/
Class |
|
The lexical entry for a single morphological form of a sense-disambiguated word. |
Class |
|
Create a Synset from a "<lemma>.<pos>.<number>" string where: <lemma> is the word's morphological stem <pos> is one of the module attributes ADJ, ADJ_SAT, ADV, NOUN or VERB <number> is the sense number, counting from 0. |
Exception |
|
An exception class for wordnet-related errors. |
Function | information |
Undocumented |
Function | jcn |
Undocumented |
Function | lch |
Undocumented |
Function | lin |
Undocumented |
Function | path |
Undocumented |
Function | res |
Undocumented |
Function | wup |
Undocumented |
Constant | POS |
Undocumented |
Constant | SENSENUM |
Undocumented |
Constant | VERB |
Undocumented |
Variable | ADJ |
Undocumented |
Variable | ADJ |
Undocumented |
Variable | ADV |
Undocumented |
Variable | NOUN |
Undocumented |
Variable | VERB |
Undocumented |
Class | _ |
A common base class for lemmas and synsets. |
Function | _get |
Undocumented |
Function | _lcs |
Get the information content of the least common subsumer that has the highest information content value. If two nodes have no explicit common subsumer, assume that they share an artificial root node that is the hypernym of all explicit roots. |
Constant | _INF |
Undocumented |
Undocumented
Value |
|
Get the information content of the least common subsumer that has the highest information content value. If two nodes have no explicit common subsumer, assume that they share an artificial root node that is the hypernym of all explicit roots.
speech as the first synset. :type ic: dict :param ic: an information content object (as returned by load_ic()). :return: The information content of the two synsets and their most informative subsumer
Parameters | |
synset1:Synset | First input synset. |
synset2:Synset | Second input synset. Must be the same part of |
ic | Undocumented |
verbose | Undocumented |