eadamopo
(Eleni Adamopoulou)
March 30, 2019, 8:07pm
1
I have this problem when I run make cmdline
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.
I have spacy v2.1.3
and en-core-web-sm and en-core-web-md 2.1.0 which are compatible
install spacy and then run following:
python -m spacy download en
deepanshu
(Deepanshu)
April 1, 2019, 5:05am
3
after installing spacy with command python -m spacy download en, u need to link the spacy model with the following commands ;
import spacy
nlp=spacy.load(“en”)
eadamopo
(Eleni Adamopoulou)
April 2, 2019, 7:39am
4
Thank you for the answers. But it doesn’t make the link because it says “You do not have the privelage to do this”…
deepanshu
(Deepanshu)
April 2, 2019, 9:26am
5
Do the loading and linking of the spacy model in admin mode of your command prompt.
1 Like
eadamopo
(Eleni Adamopoulou)
April 3, 2019, 7:30pm
6
Thank you very much! That worked!
visam
(Visa)
May 4, 2019, 2:59am
7
I have the same issue, and I am running Jupyter Lab from a server. When I try this command - python -m spacy download en, it says no module found
Akshit
(Akshit)
May 4, 2019, 4:52am
8
which os is the server? check spacy installation on that. You’ll get plenty docs on that. Or let me know the version.
visam
(Visa)
May 4, 2019, 4:58am
9
Hi Akshit, this is the server details:
Linux 43fa2ec0c81a 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I am trying to find a way to use "python -m " commands.
Thanks for your quick response
Akshit
(Akshit)
May 4, 2019, 4:59am
10
So as your error says “No module found” that’s spacy correct? You have successfully setup the environment for python right?
visam
(Visa)
May 4, 2019, 5:03am
11
Yes, when I try this in my terminal - “python -m spacy download en” I get the following error message
/usr/bin/python: No module named spacy
But inside Jupyter, when I import spacy, it works fine.
Akshit
(Akshit)
May 4, 2019, 5:11am
12
Well You tried these right?
pip install rasa_nlu[spacy]
python -m spacy download en_core_web_sm
python -m spacy link en_core_web_sm en
was the linking successful?
visam
(Visa)
May 4, 2019, 5:50am
13
That is not successful either.
visam
(Visa)
May 4, 2019, 5:55am
14
Had to use Python 3!!! I think it should solve the issue. Will keep posted