Skip to content

Commit

Permalink
fix: add punkt_tab to nltk LookupError check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko committed Aug 12, 2024
1 parent 3d49382 commit d94f743
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 d94f743

Please sign in to comment.