在寫作之中,適度引用名言佳句是常用之撰寫技巧,能增進文章說服力,讓文章更加優美令人信服。而佛教典籍之中有非常多深具哲理與啟發之名句,許多創作之中亦時常引用佛教經典之語句以闡述其文之要旨,然對於現代人來說,要在寫作時引用佛教相關之引用句實非易事。因此能於文章寫作時依據當前內容自動推薦合適的佛教引用句即為一重要的需求與研究課題,本論文即針對佛教引用句推薦問題,提出基於長短期記憶(Long Short-Term Memory, LSTM)與基於轉換器的雙向編碼器表徵技術(Bidirectional Encoder Representations from Transformers, BERT)兩種深度學習方法之佛教引用句推薦系統,可自動從文章內容進行分析推薦合適的佛教引用句。我們建置佛教引用句資料集,藉以訓練深度學習模型,實驗結果顯示系統之推薦準確率可高達0.9148,其能有效進行寫作時之佛教引用句推薦。
In writing, citing famous sayings is a common writing technique, which can enhance the persuasiveness of the article and make the article more convincing. Buddhist quotes are one the vital sources of maxims. These Buddhist quotes are full of wisdom and often enlighten people. However, for modern people, knowing how to cite a suitable inspiring Buddhist quote are not an easy job. Therefore, a recommendation system which is able to automatically recommend suitable Buddhist quotes according to the content while writing becomes an urgent demand. This paper proposes a Buddhist quote recommendation system based on two deep learning approaches, such as LSTM and BERT. We compile a data set for Buddhist quote recommendations and then train a deep learning model. The experimental results show that the accuracy of our system achieves 0.9148, which demonstrates our system effectively recommends suitable Buddhist quotes when writing.