Skip to content

Commit 155a8a7

Browse files
author
rootware
committed
added helper script
1 parent 87ba201 commit 155a8a7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
python -m pip install --upgrade poetry
3030
pip install flake8 pytest nltk
3131
poetry install
32+
python tools/install_nltk_popular.py
3233
3334
- name: Lint with flake8
3435
run: |

tools/install_nltk_popular.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python
2+
import nltk
3+
import ssl
4+
5+
try:
6+
_create_unverified_https_context = ssl._create_unverified_context
7+
except AttributeError:
8+
pass
9+
else:
10+
ssl._create_default_https_context = _create_unverified_https_context
11+
12+
nltk.download('popular')

0 commit comments

Comments
 (0)