如何从用户那里获得主观答案 [英] How to get subjective answer from user

查看:83
本文介绍了如何从用户那里获得主观答案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从用户那里获得主观答案?
这是我尝试建立的示例对话,

Is it possible to get a subjective answer from user? Here is sample conversation that I am trying to build,


  1. 用户:我发现了一个错误。 => [触发错误报告意图]

  2. 代理:您能解释这个问题吗?

  3. 用户:每次我崩溃时,应用都会崩溃询问xxx。 => [错误报告跟踪意图失败]

我想抓住用户的答案,第3行。即使我设置了正确的跟踪环境,也会出现默认后备或其他意图并处理用户的响应。似乎没有意图可以处理这种用户查询。我无法输入训练短语,因为答案可以是任何句子。也许我可以要求用户回答 [问题是] xxxxx或 xxxxx [不起作用],但这是不自然的,因此限制了用户的回答。
如果有一种解决方法可以抓住整个用户提出一些意图后,请立即与我分享。:)

I wanted to catch the user answer, line #3. Even if I setup correct follow-up context, 'Default Fallback' or other intent came out and handle the user response. It seems there is no intent that can handle this kind of user query. I could not put 'Training phrase' because the answer can be any sentence. Maybe I can ask user to answer like "[The problem is] xxxxx", or "xxxxx [is not working], but it is not natural and limit the user answer. If there is a workaround to catch whole user query right after some intent, please share with me. :)

推荐答案

您应该为此提出2个意图,例如 bug-1 bug-2

You should make 2 intents for this, lets say bug-1 and bug-2.

bug-1 ,在训练短语 bug 中提供发现错误输出上下文中的strong> 您能解释这个问题吗?响应中。

现在在 bug-2 中,给 bug 作为输入上下文,将训练短语更改为模板模式,并在其中输入 @ sys.any 并给出一些参数名称,例如: @ sys.any:bug

In the bug-1, provide found a bug in training phrases and bug in output context and Can you explain the problem? in response.
Now in bug-2, give bug as input context, change training phrases to template mode and give @sys.any in that and give some parameter name. Ex: @sys.any:bug.

现在,错误将包含整个用户查询。

Now bug will contain the entire user query.

编辑1:

通过使用 @ sys.any:bug ,用户查询将为存储在名为bug的参数中,我们可以通过引用$ bug来进行响应。请参阅下面的图片进行澄清。

EDIT 1:
By using @sys.any:bug, the the user query will be stored in the parameter named bug, which we can use in response by referencing $bug. See the pic below for clarification.

希望它会有所帮助。

这篇关于如何从用户那里获得主观答案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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