February 15, 2016

How to download NLTK data

This morning, I was confronted with the task of provisioning a new nltk instance. With most python packages, this is no more than using pip and going about your day. Not so with nltk. In addition to pip install nltk, one must download data files to make it work. Of course, the code to download the data files is old, crufty and doesn't use best practices, as defined by yours truly. So, I rewrote it and came up with this (embedded above).

No comments:

Post a Comment