class Lemma(_WordNetObject): (source)
Constructor: Lemma(wordnet_corpus_reader, synset, name, lexname_index, ...)
The lexical entry for a single morphological form of a sense-disambiguated word.
Create a Lemma from a "<word>.<pos>.<number>.<lemma>" string where: <word> is the morphological stem identifying the synset <pos> is one of the module attributes ADJ, ADJ_SAT, ADV, NOUN or VERB <number> is the sense number, counting from 0. <lemma> is the morphological form of interest
Note that <word> and <lemma> can be different, e.g. the Synset 'salt.n.03' has the Lemmas 'salt.n.03.salt', 'salt.n.03.saltiness' and 'salt.n.03.salinity'.
Lemma attributes, accessible via methods with the same name:
- name: The canonical name of this lemma.
- synset: The synset that this lemma belongs to.
- syntactic_marker: For adjectives, the WordNet string identifying the syntactic position relative modified noun. See: https://wordnet.princeton.edu/documentation/wninput5wn For all other parts of speech, this attribute is None.
- count: The frequency of this lemma in wordnet.
Lemma methods:
Lemmas have the following methods for retrieving related Lemmas. They correspond to the names for the pointer symbols defined here: https://wordnet.princeton.edu/documentation/wninput5wn These methods all return lists of Lemmas:
- antonyms
- hypernyms, instance_hypernyms
- hyponyms, instance_hyponyms
- member_holonyms, substance_holonyms, part_holonyms
- member_meronyms, substance_meronyms, part_meronyms
- topic_domains, region_domains, usage_domains
- attributes
- derivationally_related_forms
- entailments
- causes
- also_sees
- verb_groups
- similar_tos
- pertainyms
| Method | __init__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | antonyms |
Undocumented |
| Method | count |
Return the frequency count for this Lemma |
| Method | derivationally |
Undocumented |
| Method | frame |
Undocumented |
| Method | frame |
Undocumented |
| Method | key |
Undocumented |
| Method | lang |
Undocumented |
| Method | name |
Undocumented |
| Method | pertainyms |
Undocumented |
| Method | synset |
Undocumented |
| Method | syntactic |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
| Method | _related |
Undocumented |
| Instance Variable | _frame |
Undocumented |
| Instance Variable | _frame |
Undocumented |
| Instance Variable | _key |
Undocumented |
| Instance Variable | _lang |
Undocumented |
| Instance Variable | _lex |
Undocumented |
| Instance Variable | _lexname |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _synset |
Undocumented |
| Instance Variable | _syntactic |
Undocumented |
| Instance Variable | _wordnet |
Undocumented |
Inherited from _WordNetObject:
| Method | __eq__ |
Undocumented |
| Method | __hash__ |
Undocumented |
| Method | __lt__ |
Undocumented |
| Method | __ne__ |
Undocumented |
| Method | also |
Undocumented |
| Method | attributes |
Undocumented |
| Method | causes |
Undocumented |
| Method | entailments |
Undocumented |
| Method | hypernyms |
Undocumented |
| Method | hyponyms |
Undocumented |
| Method | in |
Undocumented |
| Method | in |
Undocumented |
| Method | in |
Undocumented |
| Method | instance |
Undocumented |
| Method | instance |
Undocumented |
| Method | member |
Undocumented |
| Method | member |
Undocumented |
| Method | part |
Undocumented |
| Method | part |
Undocumented |
| Method | region |
Undocumented |
| Method | similar |
Undocumented |
| Method | substance |
Undocumented |
| Method | substance |
Undocumented |
| Method | topic |
Undocumented |
| Method | usage |
Undocumented |
| Method | verb |
Undocumented |
| Method | _hypernyms |
Undocumented |
| Method | _instance |
Undocumented |