Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to nltk 3.9.1 to address CVE-2024-39705 #75

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# algorithms
numpy==1.26.0
pandas==2.1.1
nltk==3.8.1
nltk==3.9.1
anytree==2.10.0
networkx==3.1
chardet==5.2.0
Expand Down
4 changes: 2 additions & 2 deletions valentine/algorithms/cupid/linguistic_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
try:
tokens = nltk.word_tokenize(element)
except LookupError:
nltk.download('punkt')
nltk.download('punkt_tab')
nltk.download('omw-1.4')
nltk.download('stopwords')
nltk.download('wordnet')
Expand Down Expand Up @@ -195,7 +195,7 @@
try:
wn_lemmas = set(wn.all_lemma_names())
except LookupError:
nltk.download('punkt')
nltk.download('punkt_tab')

Check warning on line 198 in valentine/algorithms/cupid/linguistic_matching.py

View check run for this annotation

Codecov / codecov/patch

valentine/algorithms/cupid/linguistic_matching.py#L198

Added line #L198 was not covered by tests
nltk.download('omw-1.4')
nltk.download('stopwords')
nltk.download('wordnet')
Expand Down
Loading