strangetom/ingredient-parser

NLTK

Closed this issue · 2 comments

Thanks for this package! It might be good to run the following code on startup, so users don't run into an error:

 import nltk
 nltk.download('averaged_perceptron_tagger')

Hi @marcosfelt. Thanks for the suggestion.

I've added a check that runs when the library is imported that will download the nltk resources if it can't find the ones it needs. See d975215. This will be in the next release.

Thanks!