Skip to content

Commit

Permalink
fix: auto-download omw-1.4 for inference
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed Mar 15, 2023
1 parent 73d1d44 commit 343906c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ def ensure_wordnet_downloaded() -> None:
nltk.data.find("corpora/wordnet.zip")
except LookupError:
nltk.download("wordnet")
try:
nltk.data.find("corpora/omw-1.4.zip")
except LookupError:
nltk.download("omw-1.4")

0 comments on commit 343906c

Please sign in to comment.