首页> 外国专利> METHOD, ELECTRONIC DEVICE, AND STORAGE MEDIUM FOR TRAINING TEXT GENERATION MODEL

METHOD, ELECTRONIC DEVICE, AND STORAGE MEDIUM FOR TRAINING TEXT GENERATION MODEL

机译:用于训练文本生成模型的方法,电子设备和存储介质

摘要

The disclosure may provide a method for obtaining a document layout, an electronic device, and a storage medium. The method may include: obtaining a plurality of pieces of first sample data; extracting structured information from each of the plurality of pieces of first sample data as target structured information corresponding to each of the plurality of pieces of first sample data; inputting the plurality of pieces of first sample data into an initial text generation model to generate predicted structured information corresponding to each of the plurality of pieces of first sample data; generating a first loss value based on a difference between the predicted structured information corresponding to each of the plurality of pieces of first sample data and the corresponding target structured information; and training a phrase generation ability of the initial text generation model based on the first loss value to generate the text generation model.
机译:本公开可以提供用于获得文档布局,电子设备和存储介质的方法。 该方法可以包括:获得多个第一样本数据; 从多个第一样本数据中的每一个中提取结构化信息作为对应于多个第一样本数据中的每一个的目标结构化信息; 将多个样本数据输入到初始文本生成模型中以生成与多个第一样本数据中的每一个相对应的预测结构化信息; 基于对应于多个第一样本数据中的每一个的预测结构化信息与相应的目标结构化信息之间的预测结构化信息之间的差异产生第一损耗值; 基于第一损耗值训练初始文本生成模型的短语生成能力以生成文本生成模型。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号