I am trying to implement a form in Rasa. I get the following error when I am trying to train the nlu model.
Traceback (most recent call last): File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Users\Sathsara\Anaconda3\envs\rasa_env\Scripts\rasa.exe_main.py", line 7, in File "c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa_main.py", line 91, in main cmdline_arguments.func(cmdline_arguments) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\cli\train.py”, line 76, in train additional_arguments=extract_additional_arguments(args), File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\train.py”, line 50, in train additional_arguments=additional_arguments, File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\asyncio\base_events.py”, line 583, in run_until_complete return future.result() File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\train.py”, line 88, in train_async domain = await file_importer.get_domain() File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\importers\importer.py”, line 242, in get_domain domains = await asyncio.gather(*domains) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\importers\rasa.py”, line 66, in get_domain domain = Domain.load(self._domain_path) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\core\domain.py”, line 100, in load other = cls.from_path(path) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\core\domain.py”, line 110, in from_path domain = cls.from_file(path) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\core\domain.py”, line 123, in from_file return cls.from_yaml(rasa.utils.io.read_file(path)) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\core\domain.py”, line 133, in from_yaml return cls.from_dict(data) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\core\domain.py”, line 149, in from_dict slots = cls.collect_slots(data.get(“slots”, {})) File “c:\users\sathsara\anaconda3\envs\rasa_env\lib\site-packages\rasa\core\domain.py”, line 263, in collect_slots slot_class = Slot.resolve_by_type(slot_dict[slot_name].get(“type”)) AttributeError: ‘list’ object has no attribute ‘get’
I attached all the files here.Take a look at this and give me a solution asap. Any kind of help is highly appreciated. Thanks in advance
nlu.md (1.2 KB) stories.md (227 Bytes) Uploading: init.py… actions.py (932 Bytes) config.yml (642 Bytes) credentials.yml (776 Bytes) domain.yml (1.2 KB) endpoints.yml (1.4 KB)