Automatic Generation Method of Ancient Poetry Based on LSTM
Hanshuang Zhang, Zhi Zhang · 2020
This paper mainly focuses on the literary genre of ancient poetry with a certain rhythm and cadence, and proposes a novel automatic generation model of ancient poetry. The model uses about 300,000 Tang poems and Song poems as training data, uses One-hot encoding to process data, and uses long short-term memory networks (LSTMs) to learn the semantics of ancient poetry texts and conduct research across a single RNN structure. According to the user's requirements, the model can automatically calculate the most relevant coherent words in the context of the selected context, and generate common ancient poetry and specified words. The method of BLEU automatic evaluation and manual evaluation finally demonstrates the effectiveness of the experiment.