流程中多个技能公用词槽时意图识别有冲突如何处理?
chenxingkui 发布于2021-03 浏览:572 回复:1
0
收藏
最后编辑于2021-04

机器人配置了“火车票订票”技能和“天气查询”技能。

在咨询“今天天气如何”时,没有命中“天气查询”技能,如何处理?

对话场景如下:

配置流程导出的JSON文件如下:

[{"node_id":10002,"node_name":"词槽收集节点","node_type":"slot_filling","code":"","abscissa":230,"ordinate":121,"filling_mode":"sequential","slots":[{"slot_name":"user_chufadi","slot_alias":"出发地","say_list":["从哪里出发?"],"recover_say_list":[],"say_mode":"sequential","forced_filling":true,"clarify_times":3}],"recoverable":true},{"node_id":10004,"node_name":"火车票预订","node_type":"link","code":"","abscissa":0,"ordinate":0,"priority":2,"conditions":[[{"range":["slu","1015633","intent"],"target":"intent","mode":"not_empty","content":""}]],"previous_node":-1,"next_node":10002},{"node_id":10021,"node_name":"词槽收集节点","node_type":"slot_filling","code":"","abscissa":582,"ordinate":149,"filling_mode":"sequential","slots":[{"slot_name":"user_mudidi","slot_alias":"目的地","say_list":["目的地"],"recover_say_list":[],"say_mode":"sequential","forced_filling":true,"clarify_times":3}],"recoverable":true},{"node_id":10022,"node_name":"连线","node_type":"link","code":"","abscissa":0,"ordinate":0,"priority":1,"conditions":[[{"range":["dialog","",""],"target":"user_mudidi","mode":"unfilled","content":""}]],"previous_node":10002,"next_node":10021},{"node_id":10023,"node_name":"词槽收集节点","node_type":"slot_filling","code":"","abscissa":894,"ordinate":195,"filling_mode":"sequential","slots":[{"slot_name":"user_time","slot_alias":"出发时间","say_list":["出发时间"],"recover_say_list":[],"say_mode":"sequential","forced_filling":true,"clarify_times":3}],"recoverable":true},{"node_id":10024,"node_name":"连线","node_type":"link","code":"","abscissa":0,"ordinate":0,"priority":1,"conditions":[[{"range":["dialog","",""],"target":"user_time","mode":"unfilled","content":""}]],"previous_node":10021,"next_node":10023},{"node_id":10025,"node_name":"对话答复节点","node_type":"reply","code":"","abscissa":1196,"ordinate":244,"process":[{"action_option":"custom","say_list":["现在开始订票"],"relay_skill_id":""}],"wait_for_input":true,"recoverable":true,"recover_to_interrupted":true,"recover_say_list":[],"session_reset":false},{"node_id":10026,"node_name":"连线","node_type":"link","code":"","abscissa":0,"ordinate":0,"priority":1,"conditions":[[{"range":["dialog","",""],"target":"user_chufadi","mode":"filled","content":""},{"range":["dialog","",""],"target":"user_mudidi","mode":"filled","content":""},{"range":["dialog","",""],"target":"user_time","mode":"filled","content":""}]],"previous_node":10023,"next_node":10025},{"node_id":10027,"node_name":"词槽收集节点","node_type":"slot_filling","code":"","abscissa":278,"ordinate":339,"filling_mode":"sequential","slots":[{"slot_name":"user_loc","slot_alias":"地点","say_list":["哪里?"],"recover_say_list":[],"say_mode":"sequential","forced_filling":true,"clarify_times":3}],"recoverable":true},{"node_id":10028,"node_name":"连线","node_type":"link","code":"","abscissa":0,"ordinate":0,"priority":1,"conditions":[[{"range":["slu","1015632","intent"],"target":"intent","mode":"not_empty","content":""}]],"previous_node":-1,"next_node":10027},{"node_id":10029,"node_name":"对话答复节点","node_type":"reply","code":"","abscissa":643,"ordinate":423,"process":[{"action_option":"custom","say_list":["查询天气"],"relay_skill_id":""}],"wait_for_input":true,"recoverable":true,"recover_to_interrupted":true,"recover_say_list":[],"session_reset":false},{"node_id":10030,"node_name":"连线","node_type":"link","code":"","abscissa":0,"ordinate":0,"priority":1,"conditions":[],"previous_node":10027,"next_node":10029},{"node_id":-9999,"node_name":"失败","node_type":"reply","code":"","abscissa":0,"ordinate":0,"process":[{"action_option":"custom","say_list":["我不知道该怎么答复您"],"relay_skill_id":""}],"wait_for_input":true,"recoverable":false,"recover_to_interrupted":false,"recover_say_list":[],"session_reset":false}]

收藏
点赞
0
个赞
共1条回复 最后由unit_internal9回复于2021-04
#2unit_internal9回复于2021-04

原因:火车票的时间和天气的时间词槽同名了,并且你的连线条件用的是上下轮判断,这种判断不区分是哪个词槽,也就是是火车票的流程满足了时间,所以直接给出了答复。

解决:1、词槽名定义成不一样的。2、使用词槽当前轮判断,会选择是哪个技能下的词槽。

0
TOP
切换版块