diff --git a/app/entity_extractor.py b/app/entity_extractor.py index e0e7a4e..6831282 100644 --- a/app/entity_extractor.py +++ b/app/entity_extractor.py @@ -89,6 +89,7 @@ def get_extractor() -> SpacyExtractor: f"Loading spacy model {settings.nlp_spacy_model}. If the model is not already" " downloaded, this may take a while." ) + spacy.cli.download(settings.nlp_spacy_model) nlp = spacy.load(settings.nlp_spacy_model) log.info(f"Loaded spacy model {settings.nlp_spacy_model}.")