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.


Cover of Natural Language Processing with Python


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