#๐Ÿ”’ ๐Ÿ”’ spaCY package is not seeing model

6 messages ยท Page 1 of 1 (latest)

placid depotBOT
#

@fleet void

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

fleet void
#

Test I have done.
import spacy
nlp = spacy.load("en_core_web_trf")
doc = nlp("This is a sentence.")
Getting E050

import spacy
nlp = spacy.load("/usr/local/lib/python3.10/dist-packages/en_core_web_trf")
doc = nlp("This is a sentence.")
Getting E053
Ran these commadns for install
pip install -U pip setuptools wheel
pip install -U spacy
(had to run sudo for this line to install correctly) sudo python -m spacy download en_core_web_trf

#

Complete traceback
Traceback (most recent call last):
File "/home/jelly/Documents/Video Automation Program/test.py", line 2, in <module>
nlp = spacy.load("/usr/local/lib/python3.10/dist-packages/encoreweb_trf")
File "/home/jelly/Documents/Video Automation Program/venv/lib/python3.10/site-packages/spacy/__init.py", line 51, in load
return util.load_model(
File "/home/jelly/Documents/Video Automation Program/venv/lib/python3.10/site-packages/spacy/util.py", line 467, in load_model
return load_model_from_path(Path(name), **kwargs) # type: ignore[arg-type]
File "/home/jelly/Documents/Video Automation Program/venv/lib/python3.10/site-packages/spacy/util.py", line 538, in load_model_from_path
config = load_config(config_path, overrides=overrides)
File "/home/jelly/Documents/Video Automation Program/venv/lib/python3.10/site-packages/spacy/util.py", line 714, in load_config
raise IOError(Errors.E053.format(path=config_path, name="config file"))
OSError: [E053] Could not read config file from /usr/local/lib/python3.10/dist-packages/en_core_web_trf/config.cfg

placid depotBOT
#

@fleet void

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ ๐Ÿ”’ spaCY package is not seeing model