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

Text generation method and device, electronic equipment and storage medium

A technology for generating devices and texts, which is applied in the fields of electrical digital data processing, special data processing applications, instruments, etc., and can solve problems such as poor text generation effect, wrong labeling of training samples, and occurrence of errors

Pending Publication Date: 2019-06-21
PING AN TECH (SHENZHEN) CO LTD
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, there are also problems with some enhancement methods, such as Crop (crop), the area obtained by this change sometimes does not include the real target area, which will cause wrong labels to appear in the training samples
[0003] It can be seen that the text generated by traditional data enhancement methods has limitations, and sometimes errors occur, making the text generation effect poor

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, electronic equipment and storage medium
  • Text generation method and device, electronic equipment and storage medium
  • Text generation method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0083] As an optional implementation, the method also includes:

[0084] Get the preset text quantity;

[0085] The third text generating the same meaning as the text to be processed includes:

[0086] A third text having the same meaning as the text to be processed is generated.

[0087] Wherein, the third text is generated from the text to be processed and generated from the second text.

[0088] After the number of texts is obtained, the number of texts may be averaged, that is, the number of third texts generated from the text to be processed is the same as the number of third texts generated from the second text; or, Randomly assigning the number of texts, that is, the number of third texts generated from the text to be processed is different from the number of third texts generated from the second text.

[0089] For example, such as inputting the text A to be processed and the second text B, C, A1, A2, A3, B1, B2, B3, C1, C2, C3 can be generated, and A1, A2, A3, A4, ...

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. The method comprises the steps of obtaining a to-be-processed text; extracting keywords from the to-be-processed text, and performing diversity filling on the keywords to obtain a plurality of first texts; calculating a diversity score of each first text relative to the to-be-processed text; determining a second text from the plurality of first texts according to the diversity score; inputting the to-be-processed text and the second text into a pre-trained text generation model; and generating a third text with the meaning the same as that of the to-be-processed text. The invention further provides a text generation device, electronic equipment and a storage medium. According to the method, data enhancement is achieved, meanwhile, the textgeneration accuracy is improved, and the text generation effect is improved.

Description

technical field [0001] The invention relates to the technical field of text generation with the same semantic meaning, in particular to a text generation method, device, electronic equipment and storage medium. Background technique [0002] Data augmentation refers to the process of generating new data through some transformation operation on (limited) training data. Data enhancement has a very important impact on the final recognition performance and generalization ability. Traditional data augmentation methods include adding noise, cropping, flipping and mirroring, etc. These traditional methods have limitations. For example, if the handwritten font "6" becomes "9" after flipping, the label is different, so new samples cannot be generated by this method. In addition, there are also problems with some enhancement methods, such as Crop (cropping), the area obtained by this change sometimes does not include the real target area, which will cause wrong labels to appear in th...

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): G06F17/24G06F17/27
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