Unidic fixes
Browse files- 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
|
12 |
-
RUN sed -i '93s
|
|
|
|
|
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 |
|