首页> 外国专利> METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM FOR TRAINING MODEL AND GENERATING DIALOG

METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM FOR TRAINING MODEL AND GENERATING DIALOG

机译:用于训练模型和生成对话框的方法,装置,装置和存储介质

摘要

A method for training a dialog generation model includes: acquiring a dialog data set, and encoding a post in the dialog data set by using an encoder in the dialog generation model to obtain an encoded representation of the post; fusing, by using a decoder in the dialog generation model, the encoded representation of the post and knowledge information corresponding to the post that is obtained from a knowledge base question answering model through transfer learning to obtain a predicted response corresponding to the post; determining a value of a loss function of the dialog generation model based on the predicted response and the annotated response that correspond to the post; and updating a model parameter of the dialog generation model based on the value of the loss function. A method, an apparatus, a device, and a computer storage medium for generating a dialog are also provided.
机译:用于训练对话生成模型的方法包括:获取对话数据集,并通过在对话框生成模型中使用编码器来在对话数据集中进行对柱进行编码,以获得帖子的编码表示; 通过在对话框生成模型中使用解码器,通过传输学习从知识库问题应答模型获得的帖子和知识信息的编码表示,通过传输学习获得与帖子对应的预测响应; 基于预测的响应和对应于帖子的注释响应确定对话生成模型的损失函数的值; 并根据丢失函数的值更新对话框生成模型的模型参数。 还提供了一种用于生成对话的方法,装置,装置和计算机存储介质。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号