forked from gooberinc/goober
finish up the translations
This commit is contained in:
parent
b5c9de3097
commit
f89de0699a
5 changed files with 12 additions and 6 deletions
|
@ -13,12 +13,12 @@ def check_resources():
|
|||
try:
|
||||
nlp = spacy.load("en_core_web_sm")
|
||||
except OSError:
|
||||
print("spaCy model not found. Downloading en_core_web_sm...")
|
||||
print(get_translation(LOCALE, 'spacy_model_not_found'))
|
||||
spacy.cli.download("en_core_web_sm")
|
||||
nlp = spacy.load("en_core_web_sm")
|
||||
if "spacytextblob" not in nlp.pipe_names:
|
||||
nlp.add_pipe("spacytextblob")
|
||||
print("spaCy model and spacytextblob are ready.")
|
||||
print(get_translation(LOCALE, 'spacy_initialized'))
|
||||
|
||||
check_resources()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue