RASA Error : Invalid story file format and Failed to decode parameters as a json object

RASA Error : Invalid story file format and Failed to decode parameters as a json object

我正在使用 Rasa 的最新版本 1.10.1,并且正在开发一个天气机器人。

我无法使用“rasa train”训练我的对话模型。当我 运行 命令“rasa train”时,出现错误“无效的故事文件格式并且无法解析 stories.md”。我的 stories.md 格式似乎正确。而且,进一步,我还得到错误,'无效解析行 'slot{"location:"London"}' 中的参数。无法将参数解码为 json 对象。确保事件名称后跟一个正确的 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

我的 stories.md 文件有什么问题吗?有人可以告诉我是什么导致了这个错误以及我如何摆脱它吗? 提前致谢

这里是错误:

* inform{"location:"London"}

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

* inform{"location":"London"}