Skip to content

Commit

Permalink
Merge pull request #75 from aecio/upgrade-nltk
Browse files Browse the repository at this point in the history
Upgrade to nltk 3.9.1 to address CVE-2024-39705
  • Loading branch information
chrisk21 committed Aug 22, 2024
2 parents ddf1399 + 8e59d6c commit 9f6c79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 @@ def normalization(element,
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 @@ def compute_similarity_wordnet(word1,
try:
wn_lemmas = set(wn.all_lemma_names())
except LookupError:
nltk.download('punkt')
nltk.download('punkt_tab')
nltk.download('omw-1.4')
nltk.download('stopwords')
nltk.download('wordnet')
Expand Down

0 comments on commit 9f6c79d

Please sign in to comment.