Emotion and sentiment analysis of tweets using BERT.
Andrea Chiorrini, Claudia Diamantini, Alex Mircoli, Domenico Potena · Università Politecnica delle Marche (Università Politecnica delle Marche) · 2021
The huge diffusion of social networks has made available an unprecedented amount of publicly-available user-generated data,which may be analyzed in order to determine people’s opinions and emotions. In this paper we investigate the use of Bidirectional Encoder Representations from Transformers(BERT) models for both sentiment analysis and emotion recognition of Twitter data.We define two separate classifiers for the two tasks and we evaluate the performance of the obtained models on real-world tweet datasets. Experiments show that the models achieve an accuracy of 0.92 and 0.90 on, respectively, sentiment analysis and emotion recognition.