Chinese poem generation using natural language processing
The objective of this project is to investigate and construct multiple NLP-based models to generate Chinese poetry. Initially, an experiment utilizing LSTM was conducted to evaluate the significance of character selection, whereby the performance of the LSTM model was compared with and without the i...
Saved in:
Main Author: | |
---|---|
Other Authors: | |
Format: | Final Year Project |
Language: | English |
Published: |
Nanyang Technological University
2023
|
Subjects: | |
Online Access: | https://hdl.handle.net/10356/169119 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Nanyang Technological University |
Language: | English |
Summary: | The objective of this project is to investigate and construct multiple NLP-based models to generate Chinese poetry. Initially, an experiment utilizing LSTM was conducted to evaluate the significance of character selection, whereby the performance of the LSTM model was compared with and without the input dictionary which contains the frequently used words. The outcome shows that the model which starts to generate poems from the commonly used words has a better performance than the other, illustrating the importance of character selection. Subsequently, to enhance the performance and investigate the function of the Transformer, we extended the dataset and trained a Transformer model. The Transformer model's performance was then compared against the LSTM model and two prominent applications. The outcome shows our model has a better performance than others. Additionally, auxiliary functions were developed, including a sequence-to-sequence model to facilitate classical and modern Chinese translation for users to better comprehend classical Chinese, and a BERT model for keyword extraction to aid users' understanding of the text. Finally, an elegant UI was created and linked to the NLP models. |
---|