No obtener el resultado requerido utilizando el método de definición de Wordnet Synset

from nltk.corpus import wordnet syn=wordnet.synsets('cookbook')[0] print syn.definition 

Rendimiento esperado:

 'a book of recipes and cooking directions' 

Salida real:

 bound method Synset.definition of Synset('cookbook.n.01') 

No puedo identificar el error en mi código que está causando la diferencia entre la salida real y la salida esperada.

 >>> from nltk.corpus import wordnet as wn >>> wn.synsets('dog')[0] Synset('dog.n.01') >>> wn.synsets('dog')[0].definition  >>> wn.synsets('dog')[0].definition() u'a member of the genus Canis (probably descended from the common wolf) that has been domesticated by man since prehistoric times; occurs in many breeds' 

Es porque las propiedades del objeto Synset se han cambiado a funciones Synset , consulte https://github.com/nltk/nltk/commit/ba8ab7e23ea2b8d61029484098fd62d5986acd9c