Fortune Telling Collection - Comprehensive fortune-telling - Automatic poem writing machine &; Tibetan poetry generator: all five words, seven words, quatrains, metrical poems?
Automatic poem writing machine &; Tibetan poetry generator: all five words, seven words, quatrains, metrical poems?
Continuing the topic of NLG's automatic poem writing, we will use GPT-2 to complete the generation of five-character quatrains: after using GPT-2 to automatically write poems, we will naturally think of the generation of seven-character quatrains, five-character poems and seven-character poems from the beginning of five-character quatrains. This time, I put all these ancient poetry data together, and even put the couplet data in, and trained a model based on GPT2-Chinese. At present, this model supports the automatic generation of couplets, five-character quatrains, seven-character quatrains, five-character metrical poems, seven-character metrical poems (given that the initial content does not exceed 7 words, it will be automatically continued) and Tibetan poems (given that the content does not exceed 8 words, it will be automatically synthesized). Let's take a look at the effect first, which can be regarded as a simple guide to the automatic poem writing machine and Tibetan poem generator. Interested students can pay attention to the keyword trigger test of direct dialogue of AINLP WeChat official account.
Automatic poem writing machine or automatic poem writing:
Entering the "beginning of writing poetry" triggers the automatic generation (automatic continuation) of ancient poetry. Input content does not exceed 7 words, and a number of five-character quatrains, seven-character quatrains, five-character poems and seven-character poems are randomly generated according to the number of words:
Tibetan poetry generator:
Input "Tibetan Poem Content" to trigger the automatic generation of Tibetan poems. If the input content is less than 8 words, quatrains or rhymes will be randomly generated according to the number of words:
Wuzi poem generator:
Entering "the beginning of five-character poems" will trigger the automatic generation of five-character poems. If the input content does not exceed five words, a five-character quatrain or a five-character poem will be generated randomly.
Seven-character poem generator:
Entering "the beginning of seven characters" will trigger the automatic generation of seven-character poems. If the input content does not exceed seven words, seven-character quatrains or seven-character poems will be randomly generated.
Quatrains generator:
Entering "the beginning of quatrains" triggers the automatic generation of quatrains. The input content does not exceed 7 words, and a five-character quatrain or a seven-character quatrain is randomly generated according to the number of words.
Rhyme generator:
Entering "the beginning of a metrical poem" will trigger the automatic generation of metrical poems. Enter no more than 7 words, and randomly generate a five-character poem or a seven-character poem according to the number of words.
Five-character quatrains generator and five-character rhymes generator;
Entering "the beginning of five-character quatrains" triggers the automatic generation of five-character quatrains, and entering "the beginning of five-character rhymes" triggers the automatic generation of five-character rhymes. Input should not exceed 5 words:
Seven-character quatrains generator and seven-character rhymes generator;
Entering "the beginning of five-character quatrains" triggers the automatic generation of five-character quatrains, and entering "the beginning of five-character rhymes" triggers the automatic generation of five-character rhymes. Input should not exceed 5 words:
Finally, let's take a look at the function of automatic generation of Tibetan poems, which supports arbitrary input within 8 words. The following are the input tests of "natural language", "natural language processing" and "I love natural language processing":
Gp T2- Chinese is really a good tool. Let's take a look at Amway:
Githubgpt 2- Chinese: Chinese GPT2 training code
The materials of ancient poetry couplets are also available. Put them together, design a good data format, and a single model can support the generation of couplets of various genres of ancient poetry in one stop, which is very convenient:
The most comprehensive database of ancient poems in China.
Automatically write couplets and couplets with GPT-2 in the Spring Festival of the Year of the Rat.
Write poems automatically with GPT-2, starting with five-character quatrains.
About the introduction of the genre of ancient poetry, the following comes from the encyclopedia:
Five-character quatrains, a genre of China's traditional poems, are short poems with five words and four sentences, which conform to the rules of metrical poems and belong to the category of modern poems. This style originated from Yuefu poems in Han Dynasty, was deeply influenced by folk songs in Six Dynasties and matured in Tang Dynasty. There are only twenty crosses in each song, which can show a fresh picture and convey a true artistic conception. Seeing the big because of the small, there are always many small ones, and short chapters contain rich content, which is its biggest feature. There are two levels in the Five Musts. Representative works include Bird Watching Creek by Wang Wei, Thoughts on a Quiet Night by Li Bai, Eight Arrays by Du Fu, In the Heron Tower by Wang Zhihuan and Farewell Master by Liu Changqing.
Seven-character quatrains are a genre of China's traditional poetry, which belongs to the category of modern poetry. There are four poems in this style, each with seven words, and there are strict metrical requirements in rhyme and adhesion. The poetic style originated from Yuefu songs in the Southern Dynasties or Yuefu folk songs in the Northern Dynasties or folk songs in the Western Jin Dynasty, and its stereotypes matured in the Tang Dynasty. Representative works include Wang Changling's Two Farewells to Furong Inn and Xin Qiji, Li Bai's The First Generation of Baidicheng, Du Fu's Downstream Meeting Li Guinian, and Yanjiao's Feeling of Watching the Tide.
Five-character poetry is a genre of China's traditional poetry, which belongs to the category of modern poetry. This poetic style originated in the period of Qi Yongming in the Southern Dynasties, and its prototype is Shen Yue's new poetic style which pays attention to rhythm and antithesis. In the early Tang Dynasty, it was basically shaped by Shen Quanqi and Song Dynasty, and matured in the prosperous Tang Dynasty. The whole article consists of eight sentences, each with five words. There are two basic forms: ascending and descending, and the two couplets in the middle must be couplets. Representative works include Li Bai's Farewell to Friends, Du Fu's Spring Hope, Wang Wei's Autumn Night in the Deep Mountains, and Xin Mao's ci of visiting the Second Palace.
Seven-character verse is a genre of China's traditional poetry, which belongs to the category of modern poetry. It originated from Shen Yue's new-style poems which focused on rhythm and antithesis during Qi Yongming's period in the Southern Dynasties. It was further developed and stereotyped by Shen Quanqi and Song in the early Tang Dynasty and matured by Du Fu in the prosperous Tang Dynasty. Its meter is rigorous, which requires the unity of words in the poem. It consists of eight sentences, and each sentence has seven words. Every two sentences are a couplet * * * quadruple, which is divided into first couplet, parallel couplet, neck couplet and tail couplet. The two couplets in the middle demand antithesis. Representative works include the Yellow Crane Tower in Cui Hao, Du Fu's Ascending, and Li Shangyin's Stabilizing Tower.
- Related articles
- What do you mean? What do you mean?
- Hebi Fortune-telling Feng Shui _ Who is Hebi Fortune-telling Feng Shui Master?
- What is a fortune-telling building _ fortune-telling building
- What do you mean by horoscope?
- The Origin of Liangshan Lantern Opera
- Pain, edema, hardness and inflexibility below the knee.
- Rona Fortune _ Rona Fengshui
- Horseshoe fortune telling _ Horseshoe word detection solution
- Regulations of Jiangsu Province on the Administration of Public Security
- Chongqing Xiushan fortune teller _ Chongqing Xiushan fortune teller