Giter Site home page Giter Site logo

docker-nlp's People

Contributors

iwitaly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-nlp's Issues

Upgrade Flair to version 0.7

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.