IntelLabs / nlp-architect

A model library for exploring state-of-the-art deep learning topologies and techniques for optimizing Natural Language Processing neural networks
https://intellabs.github.io/nlp-architect
Apache License 2.0
2.94k stars 445 forks source link

Can't run ABSA solution with docker #179

Closed stevesolun closed 3 years ago

stevesolun commented 3 years ago

Hi @danielkorat ,

When I clone and try to run the merged solution I get an error shown in previous open bug (#178).

I have successfully built a docker but I can't get the to localhost:5006 and open the ABSA solution UI.

Here is the Dockerfile you can run and reproduce:

FROM ubuntu:18.04
LABEL maintainer="Intel AI Lab NLP"

RUN apt update && \
    apt install -y bash build-essential ca-certificates python3 python3-pip git vim && \
    rm -rf /var/lib/apt/lists

RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools

WORKDIR /workspace
RUN git clone https://github.com/NervanaSystems/nlp-architect.git
RUN cd nlp-architect/ && \
    git checkout 66863f850822b4686c0df1dd88a3bf614f234818
RUN cp -R nlp-architect/solutions nlp-architect/nlp_architect/
RUN python3 -m pip install -e nlp-architect && \
    pip install -r nlp-architect/solutions/absa_solution/requirements.txt
RUN python3 -m spacy download en

WORKDIR /workspace/nlp-architect
CMD ["/bin/bash"]

EXPOSE 8080
EXPOSE 8888
stevesolun commented 3 years ago

This one was solved with reinstalling Bokeh to be 1.2.0.