I have WordNet installed on my machine, and when I run the terminal command
wn funny -synsa
I get the following output:
Now I would like to get the same information within Python using the NLTK package. For example, if I run
synset_name = 'amusing.s.02'
for l in wordnet.synset(synset_name).lemmas():
print('Lemma: {}'.format(l.name()))
I get all the lemmas I see in the terminal output (i.e.: amusing, comic, comical, funny, laughable, mirthful, risible). However, what does the "=> humorous (vs. humorless), humourous" part in the terminal output mean and how can I get this with NLTK? It looks kind of like a hypernym, but adjectives don't have hypernym relationships.

From https://wordnet.princeton.edu/documentation/wn1wn
To emulate the behavior in NLTK, you'll need to:
.lemma_names()per synsetIn code:
[out]:
Note: Somehow the NLTK interface didn't get the
antonyms()part of the head synset of the satellite so the(vs ...)lemmas are missing. (Looks like a bug, might be good to raise an issue innltkandwnpypi library maintainers.