Home | Trees | Indices | Help |
|
---|
|
|
|||
Word | |||
Synset A set of synonyms. |
|||
Dictionary A Dictionary contains all the Words in a given part of speech. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
N = Dictionary(NOUN, NOUN)
|
|||
V = Dictionary(VERB, VERB)
|
|||
ADJ = Dictionary(ADJECTIVE, ADJECTIVE)
|
|||
ADV = Dictionary(ADVERB, ADVERB)
|
|||
Dictionaries = {NOUN: N, VERB: V, ADJECTIVE: ADJ, ADVERB: ADV}
|
|||
_RELATION_TABLE = {'!': ANTONYM, '@': HYPERNYM, '~': HYPONYM,
|
|
Return the dictionary for the supplied part of speech.
|
Return a word with the given lexical form and pos.
|
Lookup a sense by its sense number. Used by repr(sense).
|
Lookup a synset by its offset.
|
Load in some precomputed frequency distribution data from a file. It is expected that this data has been stored as two pickled dicts. TODO: Possibly place the dicts into a global variable or something so that they don't have to be repeatedly loaded from disk. |
Return the index of key within sequence, using testfn for comparison and transforming items of sequence by keyfn first. >>> _index('e', 'hello') 1 >>> _index('E', 'hello', testfn=_equalsIgnoreCase) 1 >>> _index('x', 'hello') |
Partition sequence into Return |
Return -1, 0, or 1 according to a comparison first by type, then by class, and finally by each of fields. Used when comparing two Wordnet objects (Synsets, Words, or Senses) to each other. |
Return true iff a and b have the same lowercase representation. >>> _equalsIgnoreCase('dog', 'Dog') 1 >>> _equalsIgnoreCase('dOg', 'DOG') 1 |
|
_RELATION_TABLE
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed May 16 22:47:20 2007 | http://epydoc.sourceforge.net |