Next Article in Journal
Acoustic Characterization and Quality Assessment of Cremona’s Ponchielli Theater
Next Article in Special Issue
Affective-Knowledge-Enhanced Graph Convolutional Networks for Aspect-Based Sentiment Analysis with Multi-Head Attention
Previous Article in Journal
Modeling and Analysis of Contactless Solar Evaporation for Scalable Application
Previous Article in Special Issue
Regret and Hope on Transformers: An Analysis of Transformers on Regret and Hope Speech Detection Datasets
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

CWSXLNet: A Sentiment Analysis Model Based on Chinese Word Segmentation Information Enhancement

1
School of Computer, Electronics and Information, Guangxi University, Nanning 530004, China
2
Auditing Bureau of Xixiangtang, Nanning 530001, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2023, 13(6), 4056; https://doi.org/10.3390/app13064056
Submission received: 26 February 2023 / Revised: 19 March 2023 / Accepted: 21 March 2023 / Published: 22 March 2023
(This article belongs to the Special Issue Natural Language Processing (NLP) and Applications)

Abstract

This paper proposed a method for improving the XLNet model to address the shortcomings of segmentation algorithm for processing Chinese language, such as long sub-word lengths, long word lists and incomplete word list coverage. To address these issues, we proposed the CWSXLNet (Chinese Word Segmentation XLNet) model based on Chinese word segmentation information enhancement. The model first pre-processed Chinese pretrained text by Chinese word segmentation tool, and proposed a Chinese word segmentation attention mask mechanism by combining PLM (Permuted Language Model) and two-stream self-attention mechanism of XLNet. While performing natural language processing at word granularity, it can reduce the degree of masking between masked and non-masked words for two words belonging to the same word. For the Chinese sentiment analysis task, proposed the CWSXLNet-BiGRU-Attention model, which introduces bi-directional GRU as well as self-attention mechanism in the downstream task. Experiments show that CWSXLNet has achieved 89.91% precision, 91.53% recall rate and 90.71% F1-score, and CWSXLNet-BiGRU-Attention has achieved 92.61% precision, 93.19% recall rate and 92.90% F1-score on ChnSentiCorp dataset, which indicates that CWSXLNet has better performance than other models in Chinese sentiment analysis.
Keywords: sentiment analysis; Chinese word segmentation; XLNet; attention mask; machine learning; natural language processing sentiment analysis; Chinese word segmentation; XLNet; attention mask; machine learning; natural language processing

Share and Cite

MDPI and ACS Style

Guo, S.; Huang, Y.; Huang, B.; Yang, L.; Zhou, C. CWSXLNet: A Sentiment Analysis Model Based on Chinese Word Segmentation Information Enhancement. Appl. Sci. 2023, 13, 4056. https://doi.org/10.3390/app13064056

AMA Style

Guo S, Huang Y, Huang B, Yang L, Zhou C. CWSXLNet: A Sentiment Analysis Model Based on Chinese Word Segmentation Information Enhancement. Applied Sciences. 2023; 13(6):4056. https://doi.org/10.3390/app13064056

Chicago/Turabian Style

Guo, Shiqian, Yansun Huang, Baohua Huang, Linda Yang, and Cong Zhou. 2023. "CWSXLNet: A Sentiment Analysis Model Based on Chinese Word Segmentation Information Enhancement" Applied Sciences 13, no. 6: 4056. https://doi.org/10.3390/app13064056

APA Style

Guo, S., Huang, Y., Huang, B., Yang, L., & Zhou, C. (2023). CWSXLNet: A Sentiment Analysis Model Based on Chinese Word Segmentation Information Enhancement. Applied Sciences, 13(6), 4056. https://doi.org/10.3390/app13064056

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop