Skip to content
Snippets Groups Projects
Commit c53fdacb authored by Andres Marafioti's avatar Andres Marafioti
Browse files

fix issue with ntlk

parent ba40056a
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ from utils import (
# Ensure that the necessary NLTK resources are available
try:
nltk.data.find('tokenizers/punkt_tab')
except LookupError:
except (LookupError, OSError):
nltk.download('punkt_tab')
# caching allows ~50% compilation time reduction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment