CDOM201 commited on
Commit
5b7c7a0
1 Parent(s): e9c9423

Unidic fixes

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -8,8 +8,10 @@ RUN apt-get update && apt-get install -y \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  RUN pip install -e .
11
- COPY undi/ /usr/local/lib/python3.9/site-packages/unidic/
12
- RUN sed -i '93s/./ download_and_clean()/;63s/./ # download_process/' /usr/local/lib/python3.9/site-packages/unidic/download.py
 
 
13
  RUN python -m unidic download
14
  RUN python melo/init_downloads.py
15
 
 
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  RUN pip install -e .
11
+ COPY unidic.zip /usr/local/lib/python3.9/site-packages/unidic/unidic.zip
12
+ RUN sed -i '93s/./#/' /usr/local/lib/python3.9/site-packages/unidic/download.py && \
13
+ sed -i '63s/./#/' /usr/local/lib/python3.9/site-packages/unidic/download.py && \
14
+ sed -i '93a \ \ \ \ download_and_clean()' /usr/local/lib/python3.9/site-packages/unidic/download.py
15
  RUN python -m unidic download
16
  RUN python melo/init_downloads.py
17