Comments (5)
Thank you very much for your help! I manage to build it and run it successfully. I added RUN pip3 install dynet
and had to install Flask and bs4 too. This is the final version of my Dockerfile if somebody needs it for future reference:
FROM ubuntu
ENV DEBIAN_FRONTEND noninteractive
# Installing build dependencies
RUN apt-get update && apt-get install -y build-essential automake make cmake g++ wget git mercurial python3-pip curl
# Preparing Python build environment
RUN pip3 install cython future scipy nltk requests xmltodict nose2
# Installing MKL library
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && \
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB && \
wget https://apt.repos.intel.com/setup/intelproducts.list -O /etc/apt/sources.list.d/intelproducts.list && \
apt-get update && \
apt-get install -y intel-mkl-64bit-2018.2-046
# Installing DyNET
RUN pip3 install dynet
# Prepare environment UTF-8
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Prepare cube
RUN mkdir /work && \
cd /work && \
git clone https://github.com/adobe/NLP-Cube.git
# Prepare notebook
RUN pip3 install jupyter
RUN pip3 install Flask
RUN pip3 install bs4
# Start notebook
CMD cd /work/NLP-Cube/cube/ && python3 webserver.py --port 8080 --lang=en --lang=fr --lang=de --lang=sk
from nlp-cube.
@Spaskich - glad to hear you got it working and thank you for sharing your solution.
If it's not too much trouble, could you do a pull request with the fix? We can do the copy-paste from our side, but it's your contribution and if we do it instead of you, it will not get reflected on GIT.
Thanks again,
Tibi
from nlp-cube.
This seems to be docker related image issue. I'm currently away from my laptop and canot fix this. However, I think it can be easily solved by adding ENV DEBIAN_FRONTEND noninteractive
right on the second line, in the Dockerfile. Could you please check if this works?
from nlp-cube.
Yes, this helped, however there is another problem down the line. At the 'Cloning into dynet' phase it throws a 404 error because the eigen repository is no longer on Bitbucket.
I tried changing it to the official repository on GitLab but then it says:
Cloning into 'dynet'... abort: HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Found
I'm guessing the changeset -r b2e267d
needs to be changed too, but I can't seem to find the equivalent on GitLab.
from nlp-cube.
Sorry for the delayed response. You could try using the pip dynet package. Just replace the whole DyNet installation with RUN pip install dynet
I don't guarantee that the package will include support for Intel's MKL, but at least it will allow you to build the docker image.
from nlp-cube.
Related Issues (20)
- Adobe-wide pypi deployment credentials HOT 2
- Issues with nn(Norwegian nynorsk) and nb(Norwegian bokmål). HOT 1
- Missing files in sdist
- Does cube support enhanced/collapsed dependency parsing. HOT 2
- license type of models HOT 1
- The future of the Cube project? HOT 2
- The NlpCloud seems to be down HOT 4
- Error while training a model HOT 9
- ERROR in app: Exception on /nlp [GET] HOT 4
- Kazakh language wrong result HOT 3
- Kazakh language wrong result HOT 1
- Russian model of nlpcube 0.3.1.0 does not work HOT 3
- Greek model of nlpcube 0.3.1.0 separates punctuation into other words HOT 3
- Kazakh model of nlpcube 0.3.1.0 does not tokenize well HOT 2
- Additional language models needed HOT 17
- Issues with different language models HOT 10
- ModuleNotFoundError when launching NLP-Cube HOT 2
- numpy<1.20.0 required HOT 3
- Problem with model loading HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nlp-cube.