Applied Sciences (Nov 2021)

Weibo Text Sentiment Analysis Based on BERT and Deep Learning

  • Hongchan Li,
  • Yu Ma,
  • Zishuai Ma,
  • Haodong Zhu

DOI
https://doi.org/10.3390/app112210774
Journal volume & issue
Vol. 11, no. 22
p. 10774

Abstract

Read online

With the rapid increase of public opinion data, the technology of Weibo text sentiment analysis plays a more and more significant role in monitoring network public opinion. Due to the sparseness and high-dimensionality of text data and the complex semantics of natural language, sentiment analysis tasks face tremendous challenges. To solve the above problems, this paper proposes a new model based on BERT and deep learning for Weibo text sentiment analysis. Specifically, first using BERT to represent the text with dynamic word vectors and using the processed sentiment dictionary to enhance the sentiment features of the vectors; then adopting the BiLSTM to extract the contextual features of the text, the processed vector representation is weighted by the attention mechanism. After weighting, using the CNN to extract the important local sentiment features in the text, finally the processed sentiment feature representation is classified. A comparative experiment was conducted on the Weibo text dataset collected during the COVID-19 epidemic; the results showed that the performance of the proposed model was significantly improved compared with other similar models.

Keywords