monmouth-college-cs / kieft21-text-dashboard

0 stars 0 forks source link

NLTK downloading vader_lexicon #20

Open robertutterback opened 3 years ago

robertutterback commented 3 years ago

When the code is first setup in a new environment, it will crash and complain that NLTK hasn't downloaded vader_lexicon yet.

This is a hidden dependency. Mostly we use the requirements.txt for dependencies, but in this case it's not a module, but some piece of code we need to run:

nltk.download('vader_lexicon')

We need to have some code somewhere that checks for that and downloads it if necessary. I forgot when getting this up and running on a new server, and I will inevitably forget the next time, too.