Giter Site home page Giter Site logo

Comments (5)

Spaskich avatar Spaskich commented on May 11, 2024 2

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.

tiberiu44 avatar tiberiu44 commented on May 11, 2024 1

@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.

tiberiu44 avatar tiberiu44 commented on May 11, 2024

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.

Spaskich avatar Spaskich commented on May 11, 2024

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.

tiberiu44 avatar tiberiu44 commented on May 11, 2024

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)

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.