Does spaCy no longer have a universal multilingual NER model, xx_ent_wiki_sm ? Other workaround? #13852
Unanswered
gopalika14
asked this question in
Help: Other Questions
Replies: 1 comment
-
Hi @gopalika14 Was your installation for I tried installing the ner pipeline in a virtual environment and it worked. Here as my terminal commands: # setup (ignore)
pip install -U pip setuptools wheel
pip install -U 'spacy[apple]'
python -m spacy download en_core_web_sm
# download ner model
python -m spacy download xx_ent_wiki_sm Let's try an example: import spacy
nlp = spacy.load("xx_ent_wiki_sm")
doc = nlp("Sr. Hernandez nació en Francia.")
for ent in doc.ents:
print(ent.text, ent.label_)
# Hernandez PER
# Francia LOC |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My error: OSError: [E050] Can't find model 'xx_ent_wiki_sm'. It doesn't seem to be a Python package or a valid path to a data directory.
I am using spacy==3.6.1.
My complete error log is here:
WARNING: Language eu does not exist in our mapping, using Spacy multilingual. Downloading model xx_ent_wiki_sm Download finished Traceback (most recent call last): File "/root/.local/lib/python3.9/site-packages/nlpie_nlp/deid/spacy_deid.py", line 81, in get_model model = spacy.load(model_name) File "/root/.local/lib/python3.9/site-packages/spacy/__init__.py", line 51, in load return util.load_model( File "/root/.local/lib/python3.9/site-packages/spacy/util.py", line 472, in load_model raise IOError(Errors.E050.format(name=name)) OSError: [E050] Can't find model 'xx_ent_wiki_sm'. It doesn't seem to be a Python package or a valid path to a data directory.
Beta Was this translation helpful? Give feedback.
All reactions