Watson Conversation supports nested Intents?

一世执手 提交于 2019-12-10 16:21:51

问题


Does anyone have a good example of nested Intents especially where #yes and #no are child nodes. The situation i am getting is that the API is returning with Intent value but the output text from "Anything else"!


回答1:


There is an undocumented feature that if the confidence is <0.2 then it will automatically jump to the Anything Else node.

So to get it to go to the right intent node, you will need to train the intents a bit better.

Alternatively for dealing with multiple intents you can access the intents array using the intents object.

Example:

intents[0].matches('yes|no')
OR
intents[1].matches('yes|no')

From a coding point of view you can set the flag alternate_intents and then review the returned intents array.



来源:https://stackoverflow.com/questions/40705239/watson-conversation-supports-nested-intents

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!