Skip to content
Snippets Groups Projects

Resolve "process_poleval plain text"

8 files
+ 189
0
Compare changes
  • Side-by-side
  • Inline

Files

FROM nvidia/cuda:11.1-cudnn8-runtime-ubuntu18.04
LABEL maintainer="Michał Marcińczuk <marcinczuk@gmail.com>"
RUN apt-get clean && apt-get update
# Set the locale
RUN apt-get install locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Python 3.6
RUN apt-get install -y software-properties-common vim
RUN apt-get install -y python3.6 python3-pip
# update pip
RUN pip3 install pip --upgrade
RUN pip3 install wheel
# Install requirements and spacy
WORKDIR "/poldeepner2"
ADD ./requirements.txt /poldeepner2/requirements.txt
RUN pip3 install -r requirements.txt
RUN python3.6 -m spacy download pl_core_news_sm
RUN python3.6 -m nltk.downloader punkt
RUN apt-get install -y wget
RUN apt-get install -y unzip
# Download and unzip roberta_base_fairseq
RUN mkdir -p models/roberta_base_fairseq
RUN wget https://github.com/sdadas/polish-roberta/releases/download/models/roberta_base_fairseq.zip
RUN unzip roberta_base_fairseq.zip -d models/roberta_base_fairseq
RUN rm roberta_base_fairseq.zip
COPY . .
Loading