0

i try to set things for rasacore in my system when i run the command

python3 -m rasa_nlu.train -c nlu_config.yml --data data/nlu.md -o models --fixed_model_name nlu --project current --verbose

after it tries to get

rasa_nlu.utils.spacy_utils - Trying to load spacy model with name 'en' it gives error as File "E:\anaconda\envs\botenv\lib\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.

AMC
  • 2,642
  • 7
  • 13
  • 35
frank jos
  • 3
  • 1
  • 2

2 Answers2

2

You need to download and link the spacy model you want to use. e.g.

python -m spacy download en_core_web_md
python -m spacy link en_core_web_md en

Also, preconfigured pipelines will be deprecated, see the new guide to choosing a pipeline and pass the components you want explicitly

Melinda
  • 747
  • 5
  • 13
0
pip install -U spacy==2.1.3

downgrading spacy works for me

ChatterBot error- OSError: [E941] Can't find model 'en'

maybe, model 'en' is renamed in spacy 3.

lam vu Nguyen
  • 433
  • 4
  • 9