Skip to content

Commit

Permalink
removed if statement in tokenize
Browse files Browse the repository at this point in the history
  • Loading branch information
christinestraub committed Jan 7, 2025
1 parent 6e9931a commit 7eeb411
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions unstructured/nlp/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ def _ensure_nltk_packages_available():
package_name="punkt_tab",
)

if not tagger_available or not tokenizer_available:
raise RuntimeError(
"Required NLTK packages are not available. "
"Ensure the assets are pre-baked into the image."
)



@lru_cache(maxsize=CACHE_MAX_SIZE)
Expand Down

0 comments on commit 7eeb411

Please sign in to comment.