Skip to content

Commit

Permalink
download spacy model to support all models
Browse files Browse the repository at this point in the history
  • Loading branch information
tewnut authored Jan 24, 2024
1 parent edab92e commit 77d80ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/entity_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.")

Expand Down

0 comments on commit 77d80ad

Please sign in to comment.