文本生成方法和对话文本生成方法

By converting object data into graph data and determining the encoder's position parameters and attention mask parameters, the problem of universality and accuracy of existing text generation models on different types of data is solved, achieving highly versatile and low-cost text generation.

CN116561269BActive Publication Date: 2026-07-17ALIBABA DAMO (HANGZHOU) TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ALIBABA DAMO (HANGZHOU) TECH CO LTD
Filing Date
2023-04-12
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing text generation models lack versatility and accuracy when faced with different types of structured data, resulting in high costs and difficulty in capturing the structured characteristics of the data.

Method used

The object data of the entity object is converted into graph data. The graph data is then converted into a graph embedding sequence through the embedding layer of the text generation model. The position parameters and attention mask parameters of the encoder are determined based on the graph embedding sequence. Text embedding features are then encoded and the target text is generated through the decoder.

Benefits of technology

It improves the versatility and accuracy of the text generation model, enabling it to accurately capture the structured characteristics of data when faced with different types of data, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116561269B_ABST
    Figure CN116561269B_ABST
Patent Text Reader

Abstract

本说明书实施例提供文本生成方法和对话文本生成方法,其中所述文本生成方法包括:获取实体对象的对象数据,并将对象数据转换为对应的图数据,其中,图数据包括节点和节点之间的边;将图数据输入文本生成模型的嵌入层,将图数据转换为对应的图嵌入序列,基于图嵌入序列中节点和边,确定文本生成模型的编码器的位置参数和注意力掩码参数,将图嵌入序列转换为对应的文本嵌入特征;将文本嵌入特征输入编码器,基于位置参数和注意力掩码参数,编码得到文本编码特征;将文本编码特征输入文本生成模型的解码器,解码得到实体对象的目标文本。提升了文本生成模型的通用性,降低了成本,进一步提升了文本生成的通用性和准确度。
Need to check novelty before this filing date? Find Prior Art