Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Ancient poem generation method and device based on constraint decoding, equipment and medium

A technology for ancient poetry and model generation. It is applied in the fields of instruments, electrical and digital data processing, and computing. It can solve problems such as affecting user satisfaction, low generation accuracy, and non-metrical rhythm.

Active Publication Date: 2020-11-06
CHINA PING AN LIFE INSURANCE CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the existing ancient poetry generation scheme, a text content is generally input into a deep learning-based poetry model, and the poem is generated through the poem model. The disadvantage of this scheme is that repeated words, Problems such as non-compliance with the meter and rhyme requirements, etc., lead to the lack of poetic meaning of the generated verses, and there are various problems such as incoherence, resulting in the generated verses not conforming to the poetic meaning of the user, and the generation accuracy is low, which in turn affects the user's satisfaction degree, and lead to poor user experience and other phenomena

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
  • Ancient poem generation method and device based on constraint decoding, equipment and medium
  • Ancient poem generation method and device based on constraint decoding, equipment and medium
  • Ancient poem generation method and device based on constraint decoding, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0031] The ancient poem generation method based on constraint decoding provided by the present invention can be applied in such as figure 1 , where a client (computer device) communicates with a server over a network. Wherein, the client (computer device) includes but is not limited to various personal computers, notebook computers, smart phones, tablet computers, cameras and portable wearable devices. The server can be implemented by an independent s...

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 relates to the field of artificial intelligence, and provides an ancient poem generation method and device based on constraint decoding, and equipment and a medium, and the method comprises the steps of obtaining a poem type and an original text in an ancient poem generation instruction; carrying out word segmentation and sensitive word removal processing on the original text to obtain segmented words, and obtaining a TF-IDF value of each segmented word through a TF-IDF algorithm; inputting all the segmented words and the TF-IDF values corresponding to the segmented words into akeyword recognition model, and performing recognition extension processing through the keyword recognition model to obtain keywords; sorting all the keywords through a TextRank algorithm, and determining a final keyword; and inputting the poem type and all the final keywords into an ancient poem generation model based on Beam search and seq2seq, and generating an ancient poem result correspondingto the poem type through encoding and constrained decoding processing. According to the invention, the ancient poem conforming to the poem and the poem type of the original text is automatically generated, the accuracy and reliability of generating the poem are improved, and the quality of generating the ancient poem is improved.

Description

technical field [0001] The present invention relates to the field of natural language processing of artificial intelligence, in particular to a method, device, equipment and medium for generating ancient poems based on constraint decoding. Background technique [0002] In the existing ancient poetry generation scheme, a text content is generally input into a deep learning-based poetry model, and the poem is generated through the poem model. The disadvantage of this scheme is that repeated words, Problems such as non-compliance with the meter and rhyme requirements, etc., lead to the lack of poetic meaning of the generated verses, and there are various problems such as incoherence, resulting in the generated verses not conforming to the poetic meaning of the user, and the generation accuracy is low, which in turn affects the user's satisfaction degree, and lead to poor user experience and other phenomena. Contents of the invention [0003] The present invention provides an...

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/126G06F40/216G06F40/289G06F40/242
CPCG06F40/126G06F40/216G06F40/289G06F40/242Y02D10/00
Inventor 刘广
Owner CHINA PING AN LIFE INSURANCE CO LTD
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
Eureka Blog
Learn More
PatSnap group products