fix can't find model 'en_core_web_sm'
Browse files- Dockerfile +10 -1
- en_core_web_sm-3.0.0.tar.gz +3 -0
- requirements.txt +1 -1
Dockerfile
CHANGED
@@ -7,7 +7,16 @@ COPY ./requirements.txt /code/requirements.txt
|
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
# Install spaCy model
|
10 |
-
RUN python -m spacy download en_core_web_sm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
COPY . .
|
13 |
|
|
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
# Install spaCy model
|
10 |
+
# RUN python -m spacy download en_core_web_sm
|
11 |
+
|
12 |
+
# Copy the local en_core_web_sm-3.0.0.tar.gz file into the container
|
13 |
+
COPY ./en_core_web_sm-3.0.0.tar.gz /models/en_core_web_sm-3.0.0.tar.gz
|
14 |
+
|
15 |
+
# Install the spaCy model from the .tar.gz file
|
16 |
+
RUN pip install /models/en_core_web_sm-3.0.0.tar.gz
|
17 |
+
|
18 |
+
# Clean up the .tar.gz file after installation
|
19 |
+
RUN rm /models/en_core_web_sm-3.0.0.tar.gz
|
20 |
|
21 |
COPY . .
|
22 |
|
en_core_web_sm-3.0.0.tar.gz
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0673b3ce4a28a19e99dc0fc3f8f7fe67b936c41749e6b70f778ec5f9f78f3a66
|
3 |
+
size 13701062
|
requirements.txt
CHANGED
@@ -145,7 +145,7 @@ six==1.16.0
|
|
145 |
smart-open==7.0.4
|
146 |
sniffio==1.3.1
|
147 |
soupsieve==2.6
|
148 |
-
spacy==3.
|
149 |
spacy-legacy==3.0.12
|
150 |
spacy-loggers==1.0.5
|
151 |
srsly==2.4.8
|
|
|
145 |
smart-open==7.0.4
|
146 |
sniffio==1.3.1
|
147 |
soupsieve==2.6
|
148 |
+
spacy==3.0.0
|
149 |
spacy-legacy==3.0.12
|
150 |
spacy-loggers==1.0.5
|
151 |
srsly==2.4.8
|