O'Reilly logo
  • Danny Weston thinks this is interesting:

Now, just for fun, let’s try generating some random text in the various styles we have just seen. To do this, we type the name of the text followed by the term generate.

From

Cover of Natural Language Processing with Python

Note

Function only available in NLTK v2. Does not (currently) work in v3