spacy starting warning log

This commit is contained in:
Mathieu B 2021-07-27 18:07:51 +02:00
parent dc23d6a80a
commit 6f75239397

View File

@ -9,6 +9,7 @@ def get_spacy_nlp():
global nlp global nlp
if nlp is None: if nlp is None:
print("A Spacy model is starting, it might take a few seconds (starts only once)")
nlp = spacy.load(languages_utils.get_spacy_model()) nlp = spacy.load(languages_utils.get_spacy_model())
return nlp return nlp