Skip to content

Commit

Permalink
Download punkt_tab required by nltk 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Aug 20, 2024
1 parent 9036913 commit fc80394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
# download the small English pretrained spaCy model needed by spacy analyzer
poetry run python -m spacy download en_core_web_sm --upgrade-strategy only-if-needed
fi
poetry run python -m nltk.downloader punkt
poetry run python -m nltk.downloader punkt_tab
- name: Test with pytest
run: |
poetry run pytest --cov=./ --cov-report xml
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN echo "Installing dependencies for optional features: $optional_dependencies"
&& rm -rf /root/.cache/pypoetry # No need for cache because of poetry.lock

# Download nltk data
RUN python -m nltk.downloader punkt -d /usr/share/nltk_data
RUN python -m nltk.downloader punkt_tab -d /usr/share/nltk_data

# Download spaCy models, if the optional feature was selected
ARG spacy_models=en_core_web_sm
Expand Down

0 comments on commit fc80394

Please sign in to comment.