RASA错误:无效的故事文件格式,并且无法将参数解码为json对象

问题描述 投票:0回答:1

我正在使用Rasa的最新版本1.10.1,并正在开发weatherbot。

我无法使用'rasa train'训练我的对话模型。当我运行命令“ rasa train”时,出现错误“ 无效的故事文件格式并且无法解析storys.md”。我的stories.md似乎格式正确。并且,进一步,我也收到错误''[[无效,无法解析'slot {“ location:” London“}行中的参数。无法将参数解码为json对象。请确保eventname之后是正确的json错误:期望':'分隔符:第1行第13列(字符12)'

我的stories.md文件:

##story_001 * greet -utter_greet * inform -utter_ask_location * inform{"location:"London"} -slot{"location:"London"} -action_weather * goodbye -utter_goodbye ##story_002 *greet -utter_greet * inform{"location":"Paris"} -slot{"location":"Paris"} -action_weather * goodbye -utter_goodbye ##story_003 * greet -utter_greet * inform -utter_ask_location * inform{"location":"Vilnius"} -slot{"location":"Vilnius"} -action_weather * goodbye -utter_goodbye ##story_004 * greet -utter_greet * inform{"location":"Italy"} -slot{"location":"Italy"} -action_weather * goodbye -utter_goodbye ##story_005 * greet -utter_greet * inform -utter_ask_location * inform{"location":"Lithuania"} -slot{"location":"Lithuania"} -action_weather * goodbye -utter_goodbye

我的domain.yml文件:

slots: location: type: text intents: -greet -goodbye -inform entities: -location responses: utter_greet: - text: 'Hello! How can I help?' utter_goodbye: - text: 'Bye. Talk to you later.' - text: 'Bubye! See ya!' - text: 'Au revoir' utter_ask_location: - text: 'In what location?' actions: -action_weather

story.md文件有什么问题吗?有人可以告诉我是什么导致了此错误,以及如何消除此错误?在此先感谢    
python-3.x chatbot rasa-nlu rasa-core rasa
1个回答
0
投票
这里是错误:

* inform{"location:"London"}

您还没有以“将此代码替换为:

* inform{"location":"London"}

© www.soinside.com 2019 - 2024. All rights reserved.