type Lemma
source code
object --+
|
_WordNetObject --+
|
Lemma
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
----------------
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:
http://wordnet.princeton.edu/man/wninput.5WN.html#sect10
For all other parts of speech, this attribute is None.
Lemma methods
-------------
Lemmas have the following methods for retrieving related Lemmas. They
correspond to the names for the pointer symbols defined here:
http://wordnet.princeton.edu/man/wninput.5WN.html#sect3
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
|
|
| __init__(self,
wordnet_corpus_reader,
synset,
name,
lexname_index,
lex_id,
syntactic_marker) |
source code
|
|
|
|
|
|
|
|
|
|
count(self)
Return the frequency count for this Lemma |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from _WordNetObject:
__eq__,
__hash__,
__ne__,
also_sees,
attributes,
causes,
entailments,
hypernyms,
hyponyms,
instance_hypernyms,
instance_hyponyms,
member_holonyms,
member_meronyms,
part_holonyms,
part_meronyms,
region_domains,
similar_tos,
substance_holonyms,
substance_meronyms,
topic_domains,
usage_domains,
verb_groups
|
__init__(self,
wordnet_corpus_reader,
synset,
name,
lexname_index,
lex_id,
syntactic_marker)
(Constructor)
| source code
|
- Overrides:
object.__init__
- (inherited documentation)
|
- Overrides:
object.__repr__
- (inherited documentation)
|