from nltk.corpus import wordnet
syn=wordnet.synsets('cookbook')[0]
print syn.definition
Expected Result:
'a book of recipes and cooking directions'
Actual output:
bound method Synset.definition of Synset('cookbook.n.01')
I cannot pinpoint the error in my code that causes the difference between the actual output and the expected output.
source
share