Abstract
The development of network technology has led to an explosive growth of user-generated comments. These contents are based on users' experiences after using services and products, reflecting users' evaluations. Automatically generating high-quality and controllable sentiment comments can help creators improve work quality, help service providers enhance service levels, and improve consumers' consumption experience. However, current methods have some limitations. Seq2seq models have difficulty maintaining semantic consistency and generating long texts, LSTM can maintain a memory state and generate coherent text, but is prone to overfitting, generating repetitive text, and having difficulty establishing local coherence. N-gram models text locally but cannot understand the global context. This paper proposes a hybrid architecture, called LNRG-S (LSTM N-gram Reviews Generator with Sentiments), which combines LSTM and N-gram to model both global and local dependencies, and trains separate LSTM generators for positive and negative samples to control sentiment polarity of generated comments. We computed the perplexity of comments generated by different models. LNRG-S has 43.93% and 18.89% lower perplexity than LSTM and n-gram respectively, demonstrating that LNRG-S generates more fluent and coherent text.
Original language | English |
---|---|
Title of host publication | 2023 IEEE 3rd International Conference on Data Science and Computer Application (ICDSCA) |
Place of Publication | Piscataway, NJ |
Publisher | Institute of Electrical and Electronics Engineers (IEEE) |
Pages | 133-137 |
Number of pages | 5 |
ISBN (Electronic) | 9798350341546, 9798350341539 |
ISBN (Print) | 9798350341553 |
DOIs | |
Publication status | Published - 2023 |
Event | 2023 IEEE 3rd International Conference on Data Science and Computer Application, ICDSCA 2023 - Dalian, China Duration: 27 Oct 2023 → 29 Oct 2023 |
Conference
Conference | 2023 IEEE 3rd International Conference on Data Science and Computer Application, ICDSCA 2023 |
---|---|
Country/Territory | China |
City | Dalian |
Period | 27/10/23 → 29/10/23 |
Keywords
- LSTM
- n-gram
- Sentiment control
- User-generated reviews
- Perplexity