带老虎机的 RASA 故事

Nic*_*ton 5 entities slots rasa-nlu rasa-core

有人可以用涉及插槽的 Rasa 故事为我澄清:

## story with email
* intent_request_email
    - utter_request_email
* inform_email {"email":"example@example.com"}
    - slot {"email":"example@example.com"}
    - utter_thanks
Run Code Online (Sandbox Code Playgroud)

在上面,确实example@example.com充当任何电子邮件地址的占位符(即,同样适用于john.smith@somedomain.com),或者这是否有效地将这个故事限制在提供的电子邮件正好是的情况下example@example.com

现在考虑以下情况,对于浮动实体:

## story with numeric
* intent_want_to_buy
    - utter_request_budget
* inform_budget {"amount":100}
    - slot {"amount":100}
    - utter_thanks
Run Code Online (Sandbox Code Playgroud)

是否100充当提供的任何金额(即 200、300、65.95)的占位符,或者,它实际上是说仅当且仅当用户声明其预算正好为 100.00 美元时才应用此故事。

考虑到上述情况,当插槽未设置时,如何控制要执行的故事,与插槽已填充/提供时要采用的路径。

文档相当缺乏这些基础知识,这些基础知识一旦知道就很明显,但对于 Rasa 的新手来说就不那么明显了。

小智 2

故事中的特定实体值仅是占位符,不会影响故事情节。

只有在 NLU 训练数据中,带注释的实体值才起作用,有助于意图分类。