Open Coding-with-Adam opened 2 years ago
Hello @Coding-with-Adam That's very nice feedback!
1) https://github.com/explosion/spacy-models#downloading-models Around 50 MB for the small model - "en_core_web_sm" 2) Yes Adam, `# download best-matching version of specific model for your spaCy installation python -m spacy download en_core_web_sm
pip install /Users/you/en_core_web_sm-3.0.0.tar.gz pip install /Users/you/en_core_web_sm-3.0.0-py3-none-any.whl pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0.tar.gz pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0-py3-none-any.whl` Above is the procedure to install the package before importing
3) Sure Adam, I will add. It creates a markdown HTML, that renders the entity name and label as in given in spacy package. I will add explanation
4) Thats true - I will for sure, make a small note about Named Enitity Recognition
Thanks a lot Adam, WIll make these changes and do a PR. For now given in dash doc, this is the property that renders the external HTML markdown. Streamlit also does the same attribute to have displacy rendered in the application.
hi @SangeethaVenkatesan I was talking to one of our engineers. It looks like we should be able to use the en_core_web_sm. We would need to do the following:
from spacy import displacy
:
import os
os.system("python -m spacy download en_core_web_sm")
This should work, as it would install the model into memory and allow users to run the app. I tried it locally and it worked.
Feel free to make these and the changes you mentioned, then let's add it through a PR in the main example-index repo.
Hi @SangeethaVenkatesan , I like the tooltip app. Just a few things to go over.
python -m spacy download en_core_web_sm
. Did you encounter the same issue?display.render(...)
line of code, explaining to the user what this does.dangerously_allow_html=True
I really like this app, it's amazing how much one can do with NLP with very few lines of code. Thank you,