I am trying to train the model but i am getting this error
Traceback (most recent call last):
File "C:/Users/sanchit/PycharmProjects/chatbots/nlu_model.py", line 18, in <module>
train_nlu("./data/data.json", "config_spacy.json", "./models/nlu")
File "C:/Users/sanchit/PycharmProjects/chatbots/nlu_model.py", line 12, in train_nlu
trainer = Trainer(config.load(config_file))
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\rasa_nlu\model.py", line 150, in __init__
self.pipeline = self._build_pipeline(cfg, component_builder)
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\rasa_nlu\model.py", line 162, in _build_pipeline
component = component_builder.create_component(component_cfg, cfg)
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\rasa_nlu\components.py", line 448, in create_component
component_config, cfg)
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\rasa_nlu\registry.py", line 186, in create_component_by_config
return component_class.create(component_config, config)
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\rasa_nlu\utils\spacy_utils.py", line 64, in create
nlp = spacy.load(spacy_model_name, disable=['parser'])
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\spacy\__init__.py", line 27, in load
return util.load_model(name, **overrides)
File "C:\Users\sanchit\PycharmProjects\chatbots\venv\lib\site-packages\spacy\util.py", line 171, 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.
Process finished with exit code 1
You are using spacy in your pipeline components, but you did not download the corresponding spacy model. Take a look at Installation to get instructions on how to install the dependencies for spacy.
thanks Tanja i look into both of the answers that you have provided. I followed the github one. so as ines said on github
import en_core_web_sm
nlp = en_core_web_sm.load()
Those commands were running successfully so it means the model was installed correctly.
And I am still facing that issue. And yes I am running commands as Admin.