print(wn.synset('whale.n.01'))
This code prints:
Synset('giant.n.04')
I have from nltk.corpus import wordnet as wn. Everything else is working fine.
print(wn.synset('whale.n.01'))
This code prints:
Synset('giant.n.04')
I have from nltk.corpus import wordnet as wn. Everything else is working fine.
There are two sense of whale, 'whale.n.02' is the mammal. See below from wordnet online demo http://wordnetweb.princeton.edu/perl/webwn