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

OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory. #10

Open
ishandutta2007 opened this issue Nov 11, 2018 · 1 comment

Comments

@ishandutta2007
Copy link

ishandutta2007 commented Nov 11, 2018

Steps:

Step1:
Downloaded models to ~/Documents/Projects/paraphraser/checkpoint_path/train-20180325-001253

Step2:
cd ~/Documents/Projects/paraphraser/paraphraser

Step3:
ishandutta2007@MacBook-Pro:~/Documents/Projects/paraphraser/paraphraser$ python inference.py --checkpoint=../checkpoint_path/train-20180325-001253/model-171856

/Users/ishandutta2007/.pyenv/versions/3.5.0/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expect
return f(*args, **kwds)
/Users/ishandutta2007/.pyenv/versions/3.5.0/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expect
return f(*args, **kwds)
/Users/ishandutta2007/.pyenv/versions/3.5.0/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expect
return f(*args, **kwds)
Traceback (most recent call last):
File "inference.py", line 3, in
from preprocess_data import preprocess_batch
File "/Users/ishandutta2007/Documents/Projects/paraphraser/paraphraser/preprocess_data.py", line 23, in
from nlp_pipeline import openmp_nlp_pipeline
File "/Users/ishandutta2007/Documents/Projects/paraphraser/paraphraser/nlp_pipeline.py", line 7, in
nlp = spacy.load('en')
File "/Users/ishandutta2007/.pyenv/versions/3.5.0/lib/python3.5/site-packages/spacy/init.py", line 21, in load
return util.load_model(name, **overrides)
File "/Users/ishandutta2007/.pyenv/versions/3.5.0/lib/python3.5/site-packages/spacy/util.py", line 119, in load_model
raise IOError(Errors.E050.format(name=name))
OSError: [E050] Can't find model 'en'. It doesn't seem to be a shortcut link, a Python package or a valid path to a data directory.

@wwwehr
Copy link

wwwehr commented Mar 4, 2019

try these to stage the proper files:

python -m spacy download en_core_web_sm
python -m spacy download en

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

No branches or pull requests

2 participants