带插槽的RASA Story

时间:2019-05-31 00:09:08

标签: entities rasa-nlu slots 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

在上文中,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

100是否充当所提供的任何金额(即200、300、65.95)的占位符,或者实际上是说这个故事仅适用于仅当用户声明其预算恰好是100.00美元时。

考虑到上述情况,在未设置插槽时如何控制故事执行,而在插槽已填充/提供时如何控制故事执行。

文档中缺少这类基础知识,这些基础知识一经发现就很明显,但是对于Rasa的新手来说并不是那么明显。

1 个答案:

答案 0 :(得分:0)

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

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

相关问题