poteha / docker-nlp Goto Github PK
View Code? Open in Web Editor NEWDocker images for production NLP usage including deep learning
License: MIT License
Docker images for production NLP usage including deep learning
License: MIT License
Hi
I just tried to create the Docker image locally "docker build -t nlp-cpu -f ./Dockerfile.cpu ." but received the following error:
Step 7/10 : RUN python -m nltk.downloader stopwords && python -m nltk.downloader punkt && python -m nltk.downloader averaged_perceptron_tagger
---> Running in 1deffd426a6e
/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))
[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data] Unzipping corpora/stopwords.zip.
/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))
[nltk_data] Downloading package punkt to /root/nltk_data...
[nltk_data] Unzipping tokenizers/punkt.zip.
/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))
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /root/nltk_data...
[nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip.
Removing intermediate container 1deffd426a6e
---> 77e530685b52
Step 8/10 : RUN python -c 'import flair; _ = flair.models.SequenceTagger.load("ner-fast")'
---> Running in c0a46d8d35e7
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/flair/init.py", line 2, in
from . import models
File "/usr/local/lib/python3.6/site-packages/flair/models/init.py", line 1, in
from .sequence_tagger_model import SequenceTagger
File "/usr/local/lib/python3.6/site-packages/flair/models/sequence_tagger_model.py", line 10, in
import flair.embeddings
File "/usr/local/lib/python3.6/site-packages/flair/embeddings.py", line 13, in
from .file_utils import cached_path
File "/usr/local/lib/python3.6/site-packages/flair/file_utils.py", line 14, in
import requests
ModuleNotFoundError: No module named 'requests'
The command '/bin/sh -c python -c 'import flair; _ = flair.models.SequenceTagger.load("ner-fast")'' returned a non-zero code: 1
and noticed that the Dockerfile.cpu is referencing flair version 0.3.2
I would like to upgrade to the most recent flair version 0.7, but just changing the version number did not work, so I guess I also need to update the rest of the Dockerfile. Any hints what would be necessary to do would be appreciated, thanks!
It would be helpful to have at least a minimal information about usage or maybe a code example.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.