Skip to content

Commit 5442d1e

Browse files
committed
Fix nltk.downloader warning
1 parent 0874f2e commit 5442d1e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/unittest-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ jobs:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262
COVERALLS_SERVICE_NAME: github
6363
run: |
64-
python -m nltk.downloader omw-1.4
64+
python -c "import nltk; nltk.download('omw-1.4')"
6565
coveralls
6666
# coverage run -m unittest discover

.github/workflows/unittest-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ jobs:
6868
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6969
COVERALLS_SERVICE_NAME: github
7070
run: |
71-
python -m nltk.downloader omw-1.4
71+
python -c "import nltk; nltk.download('omw-1.4')"
7272
coveralls
7373
# coverage run -m unittest discover

.github/workflows/unitttest-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ jobs:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
COVERALLS_SERVICE_NAME: github
5353
run: |
54-
python -m nltk.downloader omw-1.4
54+
python -c "import nltk; nltk.download('omw-1.4')"
5555
coveralls
5656
# coverage run -m unittest discover

0 commit comments

Comments
 (0)