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

A method, system, terminal and storage medium for generating synonymous sentences

A synonymous sentence and semantic technology, which is applied in the field of text generation in natural language processing, can solve the problems that the semantics of the generated sentence cannot be guaranteed to be consistent with the original sentence, and the grammar of synonymous sentence generation is uncontrollable, so as to enhance the controllability of the grammar. Sexuality, Enhanced Semantic Consistency, and Effects of Strong Semantic Consistency

Active Publication Date: 2021-03-09
上海旻浦科技有限公司
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, although the sequence-to-sequence learning framework based on the attention mechanism improves the effect of synonymous sentence generation compared with the traditional rule model, there are still two problems in this framework: (1) the model often pays too much attention to the original sentence and the generated sentence. The alignment of local information cannot guarantee that the semantics of the generated sentence are consistent with the original sentence; (2) The generation grammar of synonymous sentences is uncontrollable. When there are multiple synonymous sentences (the number is greater than 2), the generation process should be the original The semantic information of the target sentence is added to the grammatical information of the target sentence to generate the corresponding synonymous sentence

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
  • A method, system, terminal and storage medium for generating synonymous sentences
  • A method, system, terminal and storage medium for generating synonymous sentences
  • A method, system, terminal and storage medium for generating synonymous sentences

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The following is a detailed description of the embodiments of the present invention: this embodiment is implemented on the premise of the technical solution of the present invention, and provides detailed implementation methods and specific operation processes. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.

[0052] figure 1 It is a flowchart of a method for generating synonymous sentences in an embodiment of the present invention.

[0053] Such as figure 1 As shown, the synonym generation method provided in this embodiment may include the following steps:

[0054] S100, constructing a basic model for generating synonymous sentences;

[0055] S200, using the synonymous sentence to generate the basic model, performing self-encoding on the sentence to be converted and all the sentences in t...

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 provides a method, system, terminal and storage medium for generating synonymous sentences. The method includes: constructing a basic model for generating synonymous sentences; performing self-encoding on the sentences to be converted and sentences in all training corpus to obtain semantic vector and syntax vector; performing variational inference on the syntax vector to obtain the syntax vector after variational inference; decoupling the semantic vector and the syntax vector after variational inference; using the decoupled semantic vector and The grammatical vector after variational inference reconstructs the sentences in the training corpus and updates the training corpus; uses the updated training corpus to re-execute decoupling and optimize the vector decoupling; uses the semantic vector of the source text to splice the variation The inferred grammar vectors generate synonymous sentences. The invention decouples grammar and semantics, so that the grammar of the generated sentences is more controllable, and at the same time, the generated sentences have stronger semantic consistency.

Description

technical field [0001] The present invention relates to the technical field of text generation in natural language processing, in particular to a method, system, terminal and storage medium for generating synonymous sentences based on decoupling of semantics and grammar. Background technique [0002] Synonymous sentence generation is an important issue in the field of text generation, which refers to generating texts with the same or similar semantics for any given text. The importance of synonymous sentence generation is reflected not only in expressing the diversity of human language, but also in its role as a key component of other natural language processing tasks, such as question answering, machine translation, data augmentation and other tasks. Traditional models are usually rule-based, they replace a certain word or phrase in the input text, first find candidate synonyms or phrases from thesaurus dictionary, and then use synonyms or phrases to replace accordingly. A...

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 Patents(China)
IPC IPC(8): G06F40/126G06F40/211G06F40/253G06F40/284G06F40/30G06N3/04G06N3/08
CPCG06F40/126G06F40/211G06F40/253G06F40/284G06F40/30G06N3/08G06N3/047G06N3/045
Inventor 姜华陈文清田济东
Owner 上海旻浦科技有限公司
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