Skip to content

Commit

Permalink
Reraise LookupErrors that do not mention punkt_tab
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen authored Sep 24, 2024
1 parent f01d351 commit 45be777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions annif/analyzer/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def __init__(self, **kwargs) -> None:
"downloading it now."
)
nltk.download(_NLTK_TOKENIZER_DATA)
else:
raise

Check warning on line 42 in annif/analyzer/analyzer.py

View check run for this annotation

Codecov / codecov/patch

annif/analyzer/analyzer.py#L42

Added line #L42 was not covered by tests

def tokenize_sentences(self, text: str) -> list[str]:
"""Tokenize a piece of text (e.g. a document) into sentences."""
Expand Down

0 comments on commit 45be777

Please sign in to comment.