摘要
古诗是中华民族的文化瑰宝。基于Transformer模型,利用开源的深度学习库Tensor2Tensor,仅需编写几十行代码即可创建出一个写诗机器人。结果表明,该写诗机器人能够写出格式规范,颇具意境的七言古诗。
Ancient poetry is a cultural treasure of the Chinese nation. Based on the Transformer model and using the open source deep learning library Tensor2Tensor, a poetry writing robot can be created with only dozens of lines of code. The result shows that the poem writing robot can write seven-character ancient poetry with standard format and artistic conception.
作者
张正旺
ZHANG Zheng-wang(School of mechanical engineering,Shanghai Dian Ji University,Shanghai 201306,China)
出处
《科技视界》
2018年第33期4-6,共3页
Science & Technology Vision
基金
2017高校教师培养培训项目(A1-6101-18-002-19)