class documentation

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_related_forms Undocumented
Method frame_ids Undocumented
Method frame_strings Undocumented
Method key Undocumented
Method lang Undocumented
Method name Undocumented
Method pertainyms Undocumented
Method synset Undocumented
Method syntactic_marker Undocumented
Class Variable __slots__ Undocumented
Method _related Undocumented
Instance Variable _frame_ids Undocumented
Instance Variable _frame_strings Undocumented
Instance Variable _key Undocumented
Instance Variable _lang Undocumented
Instance Variable _lex_id Undocumented
Instance Variable _lexname_index Undocumented
Instance Variable _name Undocumented
Instance Variable _synset Undocumented
Instance Variable _syntactic_marker Undocumented
Instance Variable _wordnet_corpus_reader Undocumented

Inherited from _WordNetObject:

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __lt__ Undocumented
Method __ne__ Undocumented
Method also_sees Undocumented
Method attributes Undocumented
Method causes Undocumented
Method entailments Undocumented
Method hypernyms Undocumented
Method hyponyms Undocumented
Method in_region_domains Undocumented
Method in_topic_domains Undocumented
Method in_usage_domains Undocumented
Method instance_hypernyms Undocumented
Method instance_hyponyms Undocumented
Method member_holonyms Undocumented
Method member_meronyms Undocumented
Method part_holonyms Undocumented
Method part_meronyms Undocumented
Method region_domains Undocumented
Method similar_tos Undocumented
Method substance_holonyms Undocumented
Method substance_meronyms Undocumented
Method topic_domains Undocumented
Method usage_domains Undocumented
Method verb_groups Undocumented
Method _hypernyms Undocumented
Method _instance_hypernyms Undocumented
def __init__(self, wordnet_corpus_reader, synset, name, lexname_index, lex_id, syntactic_marker): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def antonyms(self): (source)

Undocumented

def count(self): (source)

Return the frequency count for this Lemma

def derivationally_related_forms(self): (source)

Undocumented

def frame_ids(self): (source)

Undocumented

def frame_strings(self): (source)

Undocumented

def key(self): (source)

Undocumented

def lang(self): (source)

Undocumented

def name(self): (source)

Undocumented

def pertainyms(self): (source)

Undocumented

def synset(self): (source)

Undocumented

def syntactic_marker(self): (source)

Undocumented

__slots__: list[str] = (source)

Undocumented

def _related(self, relation_symbol): (source)

Undocumented

_frame_ids: list = (source)

Undocumented

_frame_strings: list = (source)

Undocumented

Undocumented

_lang: str = (source)

Undocumented

Undocumented

_lexname_index = (source)

Undocumented

Undocumented

Undocumented

_syntactic_marker = (source)

Undocumented

_wordnet_corpus_reader = (source)

Undocumented