订餐厅demo流程图 yuhang
2019-07-26 09:56:28 0 举报
订餐厅流程图
作者其他创作
大纲/内容
用户输入
1chinese(inform_food)2chinese(inform_food)north(inform_area)expensive(inform_pricerange)3所有inform 的slot和request_phone found 的slot4all inform and request_postcode,found的slot
获取request和inform slot的填充情况
默认id test_bot
对输入进行slot和value提取
多label dense模型
1chinese(inform_food)2north(inform_area) expensive(inform_pricerange)3phone(request_phone)4postcode(request_postcode)
若为函数类则执行函数并更新部分slot
载入slot filling模型
3 Their phone number is 01223 568988.(action_inform_phone)
Action模型预测action的类别
主程序
把hakka的属性写入slot中,前缀为found_
在tracker中储存当前slot
1 Are there restaurant that serves chinese food?2 located in the north of the town and expensive pricerange.3 May I know the phone number?4 May I know the postcode?
将上次slot和当前slot融合
等待用户输入
4 The postcode is [found_postcode](action_inform_postcode)
载入action模型
识别用户id,读取tracker对新用户新建tracker
若为模板类则根据slot填充模板
3Their phone number is[found_phone].(action_inform_phone)
根据类别名执行action
2 There are 2 resturants found.We recommend hakka to you.Do you want any infomation??(action_search_rest)
回复用户
收藏
0 条评论
回复 删除
下一页