Method for automatically generating Chinese couplets by using natural language processing technology

A natural language processing and automatic generation technology, applied in natural language data processing, natural language translation, electronic digital data processing, etc., can solve the problems of semantic mismatch, incomplete function, and inability to identify the upper and lower links, and achieve semantic fit. High, rich entertainment life, high relevance effect

Active Publication Date: 2021-06-01
沈阳雅译网络技术有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Through personal experience of this system, I found that this system can provide users with a better user experience by providing a direct method and a word segmentation method when linking the next link, but there are still some problems in the semantic coordination of the above two methods; At the same time, in many cases, the relationship between the horizontal batch and the upper and lower couplets is not close enough; in addition, the length of the couplets is limited to 10 characters, and cannot contain punctuation
There is also a crude automatic couplet system in the existing technology. Compared with the Micro

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
  • Method for automatically generating Chinese couplets by using natural language processing technology
  • Method for automatically generating Chinese couplets by using natural language processing technology
  • Method for automatically generating Chinese couplets by using natural language processing technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The present invention will be further elaborated below in conjunction with the accompanying drawings of the description.

[0042] The present invention provides a method for automatically generating couplets using natural language processing technology. The Transformer translation model is applied to couplets and the task of generating couplets based on keywords, and the Transformer encoding end, pooling layer, and softmax layer are used to realize the automatic generation of horizontal batches. . The specific implementation process includes the reordering of couplet functions, automatic evaluation, acquisition of keyword-couplet data pairs, control of the length of generated couplets, acquisition of horizontal batch-couplet pseudo data, etc.

[0043] The inventive method comprises the following steps:

[0044] 1) Obtain and process three kinds of training data: uplink-downlink data pair, keyword-uplink data pair, horizontal batch-uplink and downlink data pair;...

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 method for automatically generating Chinese couplets by using a natural language processing technology. The method comprises the following steps: acquiring and processing a first line-second line data pair, a keyword-first line data pair and a horizontal streamer-first and second line data pair; performing word segmentation on all Chinese couplet data; building a machine translation model for realizing the Chinese couplet matching function, and training the model by using first line-second line data; reordering the model output according to rhymelevel and oblique tone rules, performing forced truncation on the output with a repeated translation phenomenon in the couplet matching process, and evaluating the model output; building and training a text generation model, and automatically adjusting the length of the Chinese couplet generated by using a length penalty coefficient automatic adjustment strategy; and building a text classification model for realizing a horizontal streamer generation function and training the text classification model. According to the method, the function of very complete couplet task is realized, the semantic integrating degree between the first line and second line is very high, the level and oblique correspondence is accurate, and the generated Chinese couplet is very high in relevancy with the keyword and beautiful in artistic conception.

Description

technical field [0001] The invention relates to the related tasks of applying machine translation technology, text generation technology and text classification technology to couplets, and specifically relates to a method for automatically generating couplets by using natural language processing technology. Background technique [0002] As research on natural language processing such as machine translation technology, text generation technology, and text classification technology becomes more and more popular, many scholars and technicians try to apply it in daily life. Couplets are a good example. [0003] The relatively mature "automatic couplet system" is a computer automatic couplet system developed by the Natural Language Computing Group of Microsoft Asia Research Institute. When the user gives an upper couplet, it can automatically provide several lower couplets for the user to choose; and when the user confirms a couplet, it can also generate several four-character ho...

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
IPC IPC(8): G06F40/205G06F40/284G06F40/289G06F40/58G06F16/35
CPCG06F40/205G06F40/284G06F40/289G06F40/58G06F16/355
Inventor 杜权
Owner 沈阳雅译网络技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products