Getting AttributeError: 'str' object has no attribute 'get' while training rasa

Rasa version = 2.3.4

Operating system = windows 10

Content of config.yml

image

issue Training NLU model… Traceback (most recent call last): File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Users\TCHALA\Anaconda3\envs\rasa-bots\Scripts\rasa.exe_main.py", line 7, in File "c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa_main.py", line 116, in main cmdline_arguments.func(cmdline_arguments) File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\cli\train.py”, line 58, in train_parser.set_defaults(func=lambda args: train(args, can_exit=True)) File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\cli\train.py”, line 102, in train finetuning_epoch_fraction=args.epoch_fraction, File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\train.py”, line 109, in train loop, File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\utils\common.py”, line 308, in run_in_loop result = loop.run_until_complete(f) File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\asyncio\base_events.py”, line 583, in run_until_complete return future.result() File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\train.py”, line 174, in train_async finetuning_epoch_fraction=finetuning_epoch_fraction, File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\train.py”, line 353, in _train_async_internal finetuning_epoch_fraction=finetuning_epoch_fraction, File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\train.py”, line 396, in _do_training finetuning_epoch_fraction=finetuning_epoch_fraction, File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\train.py”, line 819, in _train_nlu_with_validated_data **additional_arguments, File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\nlu\train.py”, line 98, in train nlu_config, component_builder, model_to_finetune=model_to_finetune File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\nlu\model.py”, line 158, in init components.validate_requirements(cfg.component_names) File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\nlu\config.py”, line 152, in component_names return [c.get(“name”) for c in self.pipeline] File “c:\users\tchala\anaconda3\envs\rasa-bots\lib\site-packages\rasa\nlu\config.py”, line 152, in return [c.get(“name”) for c in self.pipeline]

AttributeError: ‘str’ object has no attribute 'get’

Hi! I think you’re getting this error because supervised_embeddings is deprecated. You can specify the pipeline components e.g. by

pipeline:
    - name: DIETClassifier

etc. I hope this helps!