Skip to content

Commit

Permalink
hotfix: pin nltk version to avoid downloading punkt_tab (#1321)
Browse files Browse the repository at this point in the history
* fix: pin nltk to avoid downloading punkt_tab instead of punkt

* fix: remove punkt_tab from nltk lookup list
  • Loading branch information
Lopa10ko authored Aug 16, 2024
1 parent 39e960c commit 19f95f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def transform(self, input_data: InputData) -> OutputData:

@staticmethod
def _download_nltk_resources():
for resource in ['punkt', 'punkt_tab']:
for resource in ['punkt']:
try:
nltk.data.find(f'tokenizers/{resource}')
except LookupError:
Expand Down
2 changes: 1 addition & 1 deletion other_requirements/extra.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pillow >= 8.2.0

# Texts
gensim==4.3.2
nltk >= 3.5
nltk==3.8.1

# Misc
protobuf~=3.19.0
Expand Down

0 comments on commit 19f95f3

Please sign in to comment.