计算机工程与应用2024,Vol.60Issue(13):162-170,9.DOI:10.3778/j.issn.1002-8331.2303-0477
融合韵律特征的诗歌生成模型
Poetry Generative Model Incorporating Prosodic Features
摘要
Abstract
Prosody specification and topic consistency in poetry generation have always been a research hotspot in the field of natural language generation.In order to improve the prosody specification in poetry generation,this paper proposes a poem generation model based on Transformer combined with prosody(Transformer and prosodic features poetry genera-tion model,TPPG).According to the prosodic features,the prosodic thesaurus and the prosodic thesaurus are established,and the prosodic coding is introduced into the Transformer encoder.During the model training process,more prosodic fea-ture information can be captured,and a variety of poetic rhythms can be learned.Finally,the rhyme is generated accord-ing to the established rhyme lexicon,and the optimal verse with the rhythm feature specification is selected for the candi-date poem by using a large posterior probability,which improves the standardization and fluency of the poem as a whole.The experimental results show that the poetry generated by TPPG model can conform to rhythm well,and it has improved in both manual evaluation and machine evaluation.关键词
诗歌生成/韵律库/韵律编码/韵律特征Key words
poetry generation/rhythm library/prosodic encoding/prosodic features分类
信息技术与安全科学引用本文复制引用
吴林东,何向真,万福成..融合韵律特征的诗歌生成模型[J].计算机工程与应用,2024,60(13):162-170,9.基金项目
甘肃省科技计划项目(20JR5RA507) (20JR5RA507)
中央高校基本科研业务费专项资金(31920230054) (31920230054)
甘肃省研究生创新之星项目(2023CXZX-201). (2023CXZX-201)