NLP service does not work on some spacy models, for example: 'xx_ent_wiki_sm'. This PR downloads the model before loading and fixes this error.
:rocket: This PR description was created by Ellipsis for commit 77d80ad34c00be97a47f55a534b62cd8b43159bf.
Summary:
This PR ensures the necessary spacy model is downloaded before being loaded in the NLP service, fixing an error with certain models like 'xx_ent_wiki_sm'.
Key points:
Added spacy.cli.download(settings.nlp_spacy_model) in get_extractor function in entity_extractor.py to download the spacy model before loading it.
NLP service does not work on some spacy models, for example: 'xx_ent_wiki_sm'. This PR downloads the model before loading and fixes this error.
Summary:
This PR ensures the necessary spacy model is downloaded before being loaded in the NLP service, fixing an error with certain models like 'xx_ent_wiki_sm'.
Key points:
spacy.cli.download(settings.nlp_spacy_model)
inget_extractor
function inentity_extractor.py
to download the spacy model before loading it.Generated with :heart: by ellipsis.dev