Issues trying migrate from rasa==1.1.4 to 1.4.0

Hello, I have a project with a default spacy pipeline for nlu and I’m trying to migrate from rasa 1.1.4 to rasa 1.4.0. Training of the core model works ok and everything seems fine until I train the nlu model which ends with:

File “…\rasa\nlu\utils\spacy_utils.py”, line 236, in train example_attribute_doc = attribute_docs[attribute][idx] IndexError: list index out of range

Should I change something on my configuration or my data?

Thanks

hi @juliamendoim ! The full change log is here but I can’t think why this would happen. Could be trying to load an old model, could you please try emptying out your models dir?

Hi! I’ll check the change logs. And no, I have no previous models. Meanwhile, this is the error:

2019-10-24 13:15:57 INFO rasa.nlu.model - Starting to train component SpacyNLP Traceback (most recent call last): File “c:.python\python36\Lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:.python\python36\Lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:.\Scripts\rasa.exe_main.py", line 9, in File "c:.\lib\site-packages\rasa_main.py", line 76, in main cmdline_arguments.func(cmdline_arguments) File “c:.\lib\site-packages\rasa\cli\train.py”, line 76, in train kwargs=extract_additional_arguments(args), File “c:.\lib\site-packages\rasa\train.py”, line 45, in train kwargs=kwargs, File “c:.python\python36\Lib\asyncio\base_events.py”, line 484, in run_until_complete return future.result() File “c:.\lib\site-packages\rasa\train.py”, line 96, in train_async kwargs, File “c:.\lib\site-packages\rasa\train.py”, line 182, in _train_async_internal kwargs=kwargs, File “c:.\lib\site-packages\rasa\train.py”, line 231, in _do_training persist_nlu_training_data=persist_nlu_training_data, File “c:.\lib\site-packages\rasa\train.py”, line 459, in _train_nlu_with_validated_data persist_nlu_training_data=persist_nlu_training_data, File “c:.\lib\site-packages\rasa\nlu\train.py”, line 80, in train interpreter = trainer.train(training_data, **kwargs) File “c:.\lib\site-packages\rasa\nlu\model.py”, line 195, in train updates = component.train(working_data, self.config, **context) File “c:.\lib\site-packages\rasa\nlu\utils\spacy_utils.py”, line 236, in train example_attribute_doc = attribute_docs[attribute][idx] IndexError: list index out of range

Thanks!

I found the problem: I was missing 1 intent name in my nlu data (json format). Instead of the intent name I had

“intent”:""

Thank you