透過您的圖書館登入
IP:3.15.4.244
  • 學位論文

使用深度學習神經網路生成具有意境之中文近體詩

Generate Scenario Chinese Classical Poetry using Deep Learning Artificial Neural Networks

指導教授 : 林堉仁
本文將於2024/07/28開放下載。若您希望在開放下載時收到通知,可將文章加入收藏

摘要


本論文提出了三種使用深度學習人工神經網路(DLANNs)生成含有意境的近體詩的方法。前兩種方法使用長短期記憶模型(LSTM),第三種方法使用生成對抗網路(GAN)。為了處理漢字和單詞,必須提前完成的自然語言處理有分詞和詞向量。對於第一種方法和第二種方法,本文首先從近體詩中分別建立了各有六個意境的關鍵字庫和關鍵詞庫。方法一使用長短期記憶模型並加入特定意境的關鍵字來生成近體詩。方法二也使用長短期記憶模型,但加入特定意境的關鍵詞來生成近體詩。第三種方法則是使用生成對抗網路生成近體詩。使用特定意境的近體詩作為訓練資料,在通過判別器與生成器的互相訓練,最後可以生成含有特定意境的近體詩。這三種深度學習人工神經網路方法生成了大量的近體詩,發現使用長短期記憶模型並加入關鍵詞的第二種方法生成的近體詩比另外兩種方法好。

並列摘要


This thesis presents three methods aided by deep learning artificial neural networks (DLANNs) to generate Chinese classical poetry containing scenarios. The first two methods are aided by long short-term memory (LSTM), and the third method is aided by generative adversarial network (GAN). In order to process Chinese characters and words, natural language processes including segmentations and word vectors must be fulfilled in advanced. For the first and second method, this thesis first builds key character and key word banks respectively from Chinese classical poetry which are categorized into six specific scenarios. After that, method one uses LSTM to generate Chinese classical poetry by embedding key characters of a specific scenario. Method two also use LSTM to generate but by embedding key words. For the third method, this thesis uses GAN to generate Chinese classical poetry. The scenario of the generated Chinese classical poetry is contained during the discriminator training process by discriminating Chinese classical poetry containing that scenario. Extensive Chinese classical poetry were generated by these three DLANN-aided methods. It is found that the performance of Chinese classical poetry generated by the second method, which is using LSTM and embedding scenario key words, surpasses the performances of other two methods.

參考文獻


[1] Wikipedia 機器學習,Retrieved March 20,2021,from https://zh.wikipedia.org/wiki/機器學習
[2] 祝紹軒,深度學習模型於中文對聯生成之比較研究,國立台北科技大學.2020.
[3] 呂國麟,利用LSTM Encoder-Decoder 生成主題凝聚的中國古典詩詞,國立雲林科技大學. 2020.
[4] Ian Goodfellow,Jean PougetAbadie,Mehdi Mirza, Bing Xu, David Warde-Farley,Sherjil Ozair, Aaron Courville,and Yoshua Bengio, Generative adversarial nets. In Advances in Neural Information Processing Systems, pages 2672–2680, 2014.
[5] Wikipedia 近體詩,Retrieved June 20,2021,from https://zh.wikipedia.org/wiki/近體詩

延伸閱讀