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 ..\Python\nltk-3.2.1\nltk do not have generate() this attribute

Solution: Change version

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

AllenInWood wechat
Allen's wechat public media 疏理