Skip to content

Commit

Permalink
Update unknown_intents.py
Browse files Browse the repository at this point in the history
  • Loading branch information
comidan authored Oct 28, 2022
1 parent a60f902 commit f3039db
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/zberta/intent_discovery/unknown_intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
from nltk.corpus import wordnet

default_spacy = "en_core_web_trf"
os.system("python3 -m spacy download en_core_web_trf --no-deps")
os.system("python -m spacy download en_core_web_trf --no-deps")
nlp_engine = spacy.load("en_core_web_trf")
try:
nlp_engine = spacy.load("en_core_web_trf")
except:
os.system("python3 -m spacy download en_core_web_trf --no-deps")
nlp_engine = spacy.load("en_core_web_trf")
lemmatizer = WordNetLemmatizer()


Expand Down

0 comments on commit f3039db

Please sign in to comment.