I\'m trying to get synonyms of a given word using Wordnet. The problem is that despite I\'m doing the same as is written here: here, it returns error.
Here is my code:<
In Python 2 & 3 versions lemmas and lemma_names don't work as they are methods. You have to use lemmas() and lemma_names() instead.
For eg -
dog = wn.synset('dog.n.01') print dog.lemma_names()