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

A method and device for automatically generating poetry

A technology for automatically generating poems, applied in the computer field, can solve problems such as lack of diversity in poetry results, time and energy spent, and inability to achieve optimal results

Active Publication Date: 2019-06-25
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method can only generate poems with specified poetry types and prosody rules, so the generated poems lack diversity and may not be able to find a better solution; for example, for five-character quatrains, which include multiple prosody rules, only based on The poetry generated by one of the prosodic rules may not be the optimal result; for another example, for a poetic theme, the poetry generated only based on a specific type of poetry may also not be the optimal result
Moreover, the above solution may also bring great inconvenience to the user. For example, the user may need to perform the operation of selecting the flat and flat rules multiple times to obtain multiple poems respectively, and manually judge which kind of flat and flat rules generates more satisfactory poems. This requires spend a lot of time and effort

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 and device for automatically generating poetry
  • A method and device for automatically generating poetry
  • A method and device for automatically generating poetry

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

[0021] The term "computer equipment" in this context, also referred to as "computer", refers to an intelligent electronic device that can perform predetermined processing procedures such as numerical calculations and / or logic calculations by running predetermined programs or instructions, which may include a processor and The memory is realized by the processor...

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 for automatically generating poems. The method includes steps of constructing state machines according to a plurality of preset rhythm rules; acquiring candidate word sets from candidate word libraries according to known poem associated information and the state machines and determining associated information of each candidate word in the candidate word sets; generating the poems according to the candidate word sets, the associated information and preset scoring rules. The candidate word sets correspond to each state node of each state machine. The associated information includes score information of the candidate words and rhythm state information on the basis of the state machines. According to the scheme, the method has the advantages that the multiple preset rhythm rules can be simultaneously represented by the aid of the state machines, and accordingly the optimal poems can be generated.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for automatically generating poetry. Background technique [0002] In the prior art, before performing the operation of generating poetry, it is first necessary to determine the type of poetry and a specific prosodic rule corresponding to the type of poetry. For example, it is first determined that a five-character quatrain is to be generated, and a specific level rule corresponding to the five-character quatrain is selected, and the operation of generating poetry is performed only after the above restrictions are given. This method can only generate poems with specified poetry types and prosody rules, so the generated poems lack diversity and may not be able to find a better solution; for example, for five-character quatrains, which include multiple prosody rules, only based on The poetry generated by one of the prosodic rules may not be the optimal result...

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): G06F17/27
CPCG06F40/20G06F40/205
Inventor 李伟和为王哲伍海洋何中军胡晓光吴华王海峰
Owner BEIJING BAIDU NETCOM SCI & TECH 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