简体   繁体   English

沃森消歧

[英]Watson disambiguation

I am trying to create a disambiguate node between the top two intents in a generic fashion.我正在尝试以通用方式在前两个意图之间创建一个消除歧义的节点。 So during run time watson will not know which would be the intents that would cause disambiguation so I cannot hard code the value for the options I want to show the user.因此,在运行时,watson 将不知道哪些意图会导致消歧,因此我无法对要向用户显示的选项的值进行硬编码。

For.为了。 eg if someone asks what is slots?例如,如果有人问什么是插槽?

and if the top two intents was intents[0].intent is "Watson-assistant" and " and intents[1].intent is "Music"如果前两个意图是 intents[0].intent 是“Watson-assistant”和“并且 intents[1].intent 是“音乐”

I want to ask the user, are you asking for Slots with respect to我想问一下用户,你是在要求 Slots 吗?

1) Option Label 1: 2) Option Label 2: < 1) 选项标签 1: 2) 选项标签 2: <

What is the value that I can pass dynamically so the same input is rerouted to that intent.我可以动态传递的值是多少,以便将相同的输入重新路由到该意图。 I tried sending the intent as the same value but that did not work我尝试将意图发送为相同的值,但这不起作用

Thanks谢谢

You can actually send in the intents object directly.您实际上可以直接发送意图对象。 instead of passing in input.text you can just send in the intents object and then Watson will not try to classify the text.您可以只发送意图对象而不是传入 input.text,然后 Watson 将不会尝试对文本进行分类。 So Id recommend passing both the input text and the intent object so Watson has no chance of missing it in case there are also entities.所以 Id 建议同时传递输入文本和意图对象,这样 Watson 就不会错过它,以防万一也有实体。

This is currently a premium only feature built in to the service as well, and we're evaluating the best ways to roll it out.目前,这也是该服务内置的一项高级功能,我们正在评估推出它的最佳方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM