Tolerance analysis of wrong labels based on transformer for sentiment analysis
Abstract
In recent years, with the development of deep learning, the field of sentiment analysis has become more and more widely used. This increases the complexity and diversity of the data, which makes people hard to classify sentiment completely correctly. This paper proposes to use the Transformer model to analyze the tolerance for wrong labels in the process of sentiment analysis tasks. This paper tests the accurate values at different proportions by changing the labels proportionally. Since this paper selects a binary classification text dataset, the specific implementation method is to change 1 into 0 and 0 into 1. The results of this study show that as the proportion of changed labels increases, the overall accuracy of the results shows a downward trend, from 0.888 without changing the label to 0.831 with a 30% change to 0.671 with a 35% change. This paper verifies the stability when changing the 30% label through ten iterations, and the results fluctuate between 0.81 and 0.86. It can be concluded that the Transformer model can accept up to 30% wrong labels when handling sentiment analysis tasks. This study can provide effective help for future model training. Through this study, people can reasonably control the number of wrong labels in future research.
References
- Mehta P Pandya S 2020 A review on sentiment analysis methodologies, practices and applications International Journal of Scientific and Technology Research 9(2): pp 601-609
- Cai Y Yang K Huang D et al. 2019 A hybrid model for opinion mining based on domain sentiment dictionary International Journal of Machine Learning and Cybernetics 10: pp 2131-2142
- Xu G Yu Z Yao H et al. 2019 Chinese text sentiment analysis based on extended sentiment dictionary IEEE Access 7: pp 43749-43762
- Baid P Gupta A Chaplot N 2017 Sentiment analysis of movie reviews using machine learning techniques International Journal of Computer Applications 179(7): pp 45-49
- Ahmad M Aftab S Bashir M S et al. 2018 SVM optimization for sentiment analysis International Journal of Advanced Computer Science and Applications 9(4)
- Ruz G A Henríquez P A Mascareño A 2020 Sentiment analysis of Twitter data during critical events through Bayesian networks classifiers Future Generation Computer Systems 106: pp 92-104
- Yadav R K Jiao L Goodwin M et al. 2021 Positionless aspect-based sentiment analysis using attention mechanism Knowledge-Based Systems 226: p 107136
- Devlin J Chang M W Lee K et al. 2018 Bert: Pre-training of deep bidirectional transformers for language understanding arXiv preprint arXiv:1810.04805, 2018
- Munikar M Shakya S Shrestha A 2019 Fine-grained sentiment classification using BERT 2019 Artificial Intelligence for Transforming Business and Society (AITB). 1: pp 1-5
- Dataset https://aistudio.baidu.com/datasetdetail/132223