Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download spacy model to support all models #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tewnut
Copy link

@tewnut tewnut commented Jan 24, 2024

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.


🚀 This PR description was created by Ellipsis for commit 77d80ad.

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.

Generated with ❤️ by ellipsis.dev

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested.

  • Reviewed the entire pull request up to 77d80ad
  • Looked at 13 lines of code in 1 files
  • Took 1 minute and 1 seconds to review
More info
  • Skipped 0 files when reviewing.
  • Skipped posting 0 additional comments because they didn't meet confidence threshold of 50%.

Workflow ID: wflow_scop2Azmg24qXtSN


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. We'll respond in a few minutes. Learn more here.

app/entity_extractor.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant