基于深度学习的歌词和古诗自动生成系统设计
2021-06-28彭涛



摘 要:文本生成技术在近年开始深受研究者的青睐,其中就包括了古诗和歌词的自动生成。文章设计了一个基于深度学习的歌词与古诗自动生成系统。生成过程主要包括了数据预处理、歌词和古诗生成模型搭建、歌词和古诗生成模型训练、使用训练好的模型生成歌词和古诗。通过测试,该歌词和古诗生成系统比传统的机器写作系统效果更好,语义更准确。
关键词:自动生成;深度学习;训练模型
中图分类号:TP391.41 文献标识码:A 文章编号:2096-4706(2021)01-0025-03
Design of Automatic Generation System of Lyrics and Ancient Poems
Based on Deep Learning
PENG Tao
(Jiangxi Youth Vocational College,Nanchang 330045,China)
Abstract:Text generation technology has been deeply loved by researchers in recent years,including the automatic generation of ancient poems and lyrics. This paper designs an automatic generation system of lyrics and ancient poems based on deep learning. The generation process mainly includes data preprocessing,lyrics and ancient poems generation model building,lyrics and ancient poems generation model training,using the trained model to generate lyrics and ancient poems. Through the test,the lyrics and ancient poems generation system has better effect and more accurate semantics than the traditional machine writing system.
Keywords:automatic generation;deep learning;training model
0 引 言
古诗作为中国古代文学艺术的结晶,是中华民族文化艺术宝库中非常重要的部分。那些历久弥新的古诗展示了古代文人墨客的多彩生活,更包含了中国国民精神的全部符码。歌词作为音乐的核心,美妙的音乐必然少不了高品质的歌词,所以歌詞和古诗自动生成技术的研究是非常有意义的。笔者在教授计算机课程过程中,发现班上一些学生对歌词和古诗也很感兴趣,在业余时间,就带领这些学生利用所学的深度学习知识设计开发了歌词和古诗自动生成系统,该系统已经进入测试阶段,目前能够较好地完成歌词和古诗自动生成。该系统的开发,不但将所学知识应用于实践,让学生体会到所学知识的用武之地,还陶冶学生了情操,积极响应国家提出的课程思政教育,积极推进素质教育。
1 系统功能概述
基于深度学习的歌词和古诗自动生成系统是通过神经网络对数据集进行学习和语义分析后训练出模型,再利用模型和GUI图形界面为用户提供古诗和歌词生成服务的系统。……
