How do I use NLTK with Python on Heroku?

Issue

I want to use NLTK data on Heroku.

Resolution

The Python buildpack offers support for downloading NLTK data files listed in a nltk.txt file at the root of the app, as described here: https://devcenter.heroku.com/articles/python-nltk