当同一实体在多个插槽中使用时,如何避免插槽填充混乱? [英] How to avoid slot filling confusion when the same entity is used in more than one slot?

查看:56
本文介绍了当同一实体在多个插槽中使用时,如何避免插槽填充混乱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在广告位设置中,我需要保存date1&date2由两个插槽作为上下文变量,我们将其命名为slot1和slot2,它们都检查@ sys-date

我在

解决方案

请参阅"

基本上,您必须为对话框节点启用更多选项才能查看其他条件.现在,通过自定义检查替换该默认条件 #True 并添加其他问题.稍后,评估该问题的答案以设置上下文变量.

In the slot setting , I need to save date1 & date2 as context variables by two slot, let's me called it slot1 and slot2, and they all check for @sys-date

I have found a simple answer at IBM document. However, it's an abstract description, I cannot really understand how to do so.

The document said the solution is to " Use slot found conditions that get clarification from the user about which date you are saving in a slot before you save it."

I think it is referring to edit this part (the below picture). But not knowing how

Think about this example sentence" I need to leave at $date2, oh, by the way, I'll be there from $date1"

In fact, the first shown date will be save as $date1 not $date2. What to fill in the "found" area? Also, what's the effect of a response in slot1 (which should save $date1) like "Do you want to come at $date2?" It did not have a "save it as" (context) option in the edit area, neither an if/else condition setting.

I cannot find a video or step by step tutorial for this.

解决方案

See this step 5 in "Improving a dialog node with slots" in the IBM Watson Assistant documentation. Here, in substeps 11 and 12 the concept of "slot found conditions" is discussed.

Basically, you have to enable more options for the dialog node to see additional conditions. Now, replace that default condition #True by a custom check and add an additional question. Later, evaluate the answer to that question in order to set the context variable.

这篇关于当同一实体在多个插槽中使用时,如何避免插槽填充混乱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆