IOError: [Errno 2] No such file or directory: '/en_core_web_sm/en_core_web_sm-2.0.0a0/tagger/cfg'
I'm trying to run the spacy-nightly in a new environment for testing purpose. After installation when I try to run the following code as mention in the example,
import spacy
from spacy import displacy
try:
unicode
except:
unicode = str
text = unicode('But Google is starting from behind.')
nlp = spacy.load('en_core_web_sm')
doc = nlp(text)
displacy.serve(doc, style='ent')
I got the error:
IOError: [Errno 2] No such file or directory: '/home/irfan/PycharmProjects/nightly/.night/local/lib/python2.7/site-packages/en_core_web_sm/en_core_web_sm-2.0.0a0/tagger/cfg
Info about spaCy
- Python version: 2.7.12
- Platform: Linux-4.4.0-87-generic-x86_64-with-Ubuntu-16.04-xenial
- spaCy version: 2.0.0a4
Same problem. Same setup but using python3.
Ah, damn, this was a bug in introduced in the recent alpha update (2.0.0a4). Sorry about that – pushing a new update in a minute that fixes this.
In the meantime, 2.0.0a0 should work fine:
pip install spacy-nightly==2.0.0a0
Fixed in the latest update, 2.0.0a6!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.