Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Text generation method and device

A text, initial text technology, applied in the field of data processing, can solve the problem of inaccurate target text

Inactive Publication Date: 2020-06-05
PING AN TECH (SHENZHEN) CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the present invention provides a method and device for text generation, the main purpose of which is to solve the problem of inaccurate target text generated according to existing models in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text generation method and device
  • Text generation method and device
  • Text generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0031] The purpose of the present invention is to use intent as a control condition to generate a sentence with a given intent, which can be used to expand the data of the intelligent question answering knowledge base. The embodiment of the present invention provides a method for text generation, such as figure 1 As shown, the method includes:

[0032] 101. Acquire initial text data.

[0033] 102. Calculate the hidden space param...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a text generation method and device, relates to the technical field of data processing, and aims to solve the problem that a target text generated according to an existing model is inaccurate in the prior art. The method mainly comprises the steps of obtaining initial text data; calculating hidden space parameters of a variational auto-encoder of the initial text data according to a preset BERT language model; taking the initial text data, the hidden space parameters and an initial control condition as input data, taking a control statement corresponding to the initialtext data under the initial control condition as output data, and correcting the weight of a training LSTM (Long Short Term Memory) decoder by adopting a sequential reverse transmission algorithm so as to train the LSTM decoder; and generating a target statement of a to-be-tested statement by taking the to-be-tested statement and the target control condition as input data of the LSTM decoder. Themethod and the device are mainly applied to a similar text extension process.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a text generation method and device. Background technique [0002] Generated text is the text in the process of structuring, and the form expressed by the structure is the phenomenal text. The quality of the generated text is usually judged by its readability and controllability. Among them, readability means that the generated text has sentences that conform to the norms of human natural language and the meaning of the sentences is clear, and controllability means that the desired target sentence can be generated according to the parameters set in advance, and the sentence can be changed according to the adjustment of the parameters. semantics. [0003] Existing text generation schemes are usually divided into rule-based text generation and neural network-based text generation. The rule-based generation method usually manually specifies some rules and uses methods such...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/151G06N3/04G06N3/08G06F16/332
CPCG06N3/088G06F16/3329G06N3/044G06N3/045
Inventor 陈瑞清许开河王少军
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products