I'm using docker to run an NLP system that uses nltk, languagetool etc...
When I use docker-compose build --build-arg env=dev
I get the warning message:
/usr/local/lib/python3.6/runpy.py:125: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour warn(RuntimeWarning(msg))
Then when I use docker-compose up
I get these errors when trying to run my system:
Please help me figure out how to fix this!
In your Dockerfile:
RUN python -c "import nltk;nltk.download('your_library')"
After pip install nltk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With