Skip to content

Commit d768f11

Browse files
authored
fix: Update nltk data download (#554)
1 parent 54caafd commit d768f11

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ENV PATH="/opt/venv/bin:$PATH"
6969
COPY backend/requirements.txt .
7070
RUN pip3 install --no-cache-dir -r requirements.txt && find /opt/venv \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' \+
7171

72-
RUN python -c "import nltk; nltk.download('averaged_perceptron_tagger', download_dir='/opt/venv/nltk_data')"
72+
RUN python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='/opt/venv/nltk_data')"
7373

7474
# ------------
7575
# RUNNER

backend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ENV PATH="/opt/venv/bin:$PATH"
1616
COPY requirements.txt .
1717
RUN pip3 install --no-cache-dir -r requirements.txt && find /opt/venv \( -type d -a -name test -o -name tests \) -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' \+
1818

19-
RUN python -c "import nltk; nltk.download('averaged_perceptron_tagger', download_dir='/opt/venv/nltk_data')"
19+
RUN python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='/opt/venv/nltk_data')"
2020

2121
# ------------
2222
# RUNNER

backend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Take a look at the general contribution rules [here](../CONTRIBUTING.md).
1010
- Create a python environment `python3 -m venv venv`
1111
- Activate your python environment `source venv/bin/activate` (environment can be deactivated with `deactivate`)
1212
- Install dependencies `pip3 install -r requirements.txt`
13-
- Initialize/Upgrade requirements for the recipe scraper `python -c "import nltk; nltk.download('averaged_perceptron_tagger', download_dir='./venv/nltk_data')"`
13+
- Initialize/Upgrade requirements for the recipe scraper `python -c "import nltk; nltk.download('averaged_perceptron_tagger_eng', download_dir='./venv/nltk_data')"`
1414
- Initialize/Upgrade the SQLite database with `flask db upgrade`
1515
- Run debug server with `python3 wsgi.py` or without debugging `flask run`
1616
- The backend should be reachable at `localhost:5000`

0 commit comments

Comments
 (0)