Skip to content

Commit

Permalink
fix: add punkt_tab to nltk LookupError check (#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko authored Aug 12, 2024
1 parent 3d49382 commit 39e960c
Showing 1 changed file with 1 addition and 1 deletion.
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']:
for resource in ['punkt', 'punkt_tab']:
try:
nltk.data.find(f'tokenizers/{resource}')
except LookupError:
Expand Down

0 comments on commit 39e960c

Please sign in to comment.