Poem generation method and device, computer equipment and storage medium

A computer program and poetry technology, applied in the field of artificial intelligence, can solve problems such as poor quality of poetry, achieve the effect of improving fluency and solving poor quality

Pending Publication Date: 2020-12-18
CHINA PING AN LIFE INSURANCE CO LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a poetry generation method, device, computer equipment and storage medium to solve the problem of poor quality of generated poetry

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The following will clearly and completely describe the technical solutions in the present invention in combination with the accompanying drawings in the present invention. Obviously, the described embodiments are some 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.

[0034] The poetry generation method provided by the present invention can be applied in such as figure 1 In the application environment, the server communicates with the client through the network.

[0035] In one embodiment, as figure 2 As shown, a method for generating poetry is provided, including the following steps:

[0036] S10: Obtain topic information of the poems to be generated.

[0037] Understandably, when it is necessary to generate a poem, the client can provide and receive th...

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 artificial intelligence, and provides a poem generation method comprising the following steps: obtaining theme information of a poem to be generated; inputting the theme information into a poem prediction model to generate an initial candidate poem set; inputting candidate poems in the initial candidate poem set into a preset n-gram language model to generate a target candidate poem set; carrying out escort screening processing on candidate poems of the target candidate poem set according to a preset escort rule, and calculating a repetition rate of each poem to be screened; and carrying out poem repetition rate screening on the plurality of poems to be screened according to the repetition rate to obtain a target poem. Through adoption of the poem search method, the initial candidate poem set obtained by predicting the poem search method is screened through the poem fluency, the poem escort and the poem repetition rate, the smoothness, the escort performance and the non-repeatability of the generated poems are improved, and the problem of poor poem generation quality in the prior art is solved.

Description

technical field [0001] The present invention relates to the field of artificial intelligence, in particular to a poetry generation method, device, computer equipment and storage medium. Background technique [0002] Poetry is a part of the essence of Chinese culture. After a long period of accumulation, many high-quality ancient poems and modern poems have been produced. With the rapid development of deep learning technology, models based on deep learning have also been applied to poetry creation. The poetry prediction model realizes the function of automatically generating poetry by learning the existing ancient or modern poetry corpus, learning their writing characteristics and methods, and then imitating, creating, and regenerating. [0003] At present, the poetry generation model based on deep learning uses a sentence-by-sentence cycle to generate poems. Specifically, first construct a training set for poetry generation through keywords, and then predict the current lin...

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/216G06F40/211G06F40/284G06F16/335
CPCG06F40/216G06F40/211G06F40/284G06F16/335
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
Try Eureka
PatSnap group products