Skip to content
Snippets Groups Projects

Resolve "process_poleval plain text"

Files

@@ -18,11 +18,20 @@ RUN apt-get install -y python3.6 python3-pip
@@ -18,11 +18,20 @@ RUN apt-get install -y python3.6 python3-pip
RUN pip3 install pip --upgrade
RUN pip3 install pip --upgrade
RUN pip3 install wheel
RUN pip3 install wheel
# Copy repository and install requirements
# Install requirements and spacy
COPY . ./poldeepner2
WORKDIR "/poldeepner2"
WORKDIR "/poldeepner2"
 
ADD ./requirements.txt /poldeepner2/requirements.txt
RUN pip3 install -r 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
# download the necessary using config
RUN apt-get install -y wget
# run sever
RUN apt-get install -y unzip
# expose port
\ No newline at end of file
# 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