• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

Computer Engineering & Science ›› 2021, Vol. 43 ›› Issue (09): 1668-1674.

Previous Articles     Next Articles

Analysis of Chinese text emotions combining BERT and BiSRU-AT

HUANG Ze-min,WU Xiao-ling,WU Ying-gang,LING Jie   

  1. (School of Computer,Guangdong University of Technology,Guangzhou 510006,China)

  • Received:2020-05-13 Revised:2020-07-12 Accepted:2021-09-25 Online:2021-09-25 Published:2021-09-27

Abstract: To address the problems that the traditional language model cannot solve the problem of word ambiguity in word vector representation and the existing models of emotion classification cannot capture long distance semantic information, the analysis of text emotions combining BERT (Bidirectional Encoder Representation from Transformers) and BiSRU-AT is proposed. Firstly, BERT is used to obtain the word vector representation that integrates text semantics, and then BiSRU (Bidirectional Simple Recurrent Unit) is used to extract context information again. Secondly, the attention mechanism is utilized to assign corresponding weights to the outputs of BiSRU layer to highlight the key information. Finally, softmax regression is used to obtain the sentence level emotional probability distribution. Experiments are carried out on the Twitter dataset and hotel comment dataset. The results show that the ana- lysis of text emotions model combining BERT and BiSRU-AT can achieve higher accuracy, and the BiSRU model and the adoption of attention mechanism can effectively improve the overall performance of the model which is of great pragmatic value. 


Key words: text emotion analysis, semantic feature, attention mechanism, bidirectional simple recurrent unit, bidirectional encoder ,