strangetom / ingredient-parser

A tool to parse recipe ingredients into structured data
https://ingredient-parser.readthedocs.io/en/latest/
MIT License
72 stars 12 forks source link

NLTK #5

Closed marcosfelt closed 1 year ago

marcosfelt commented 1 year ago

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')
strangetom commented 1 year ago

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 d975215b14322379fbfb2f1bb029c053ae234107. This will be in the next release.

marcosfelt commented 1 year ago

Thanks!