generate error

Python version: 2.7
nltk version: NLTK3.0.4
In version 3.0.4 of NLTK, there is an error when using the below code.

text3.generate()

After some searching, it is the version difference that contributes to this error.
In nltk 2.0.1, text has generate() this function. Just like below img:
version difference
text.py file in ..Pythonnltk-3.2.1nltk do not have generate() this attribute

Solution: Change version

reference: http://blog.csdn.net/huludan/article/details/47375357