期刊文献+

基于BERT和层次化Attention的微博情感分析研究 被引量:15

Microblog Sentiment Analysis Based on BERT and Hierarchical Attention
下载PDF
导出
摘要 微博情感分析旨在挖掘网民对特定事件的观点和看法,是网络舆情监测的重要内容。目前的微博情感分析模型一般使用Word2Vector或GloVe等静态词向量方法,不能很好地解决一词多义问题;另外,使用的单一词语层Attention机制未能充分考虑文本层次结构的重要性,对句间关系捕获不足。针对这些问题,提出一种基于BERT和层次化Attention的模型BERT-HAN(bidirectional encoder representations from transformers-hierarchical Attention networks)。通过BERT生成蕴含上下文语意的动态字向量;通过两层BiGRU分别得到句子表示和篇章表示,在句子表示层引入局部Attention机制捕获每句话中重要的字,在篇章表示层引入全局Attention机制以区分不同句子的重要性;通过Softmax对情感进行分类。实验结果表明,提出的BERT-HAN模型能有效提升微博情感分析的Macro F1和Micro F1值,具有较大的实用价值。 Microblog sentiment analysis aims to dig out netizens’views and opinions on specific events,which is an important content of online public opinion monitoring.The current microblog sentiment analysis models generally static word embedding methods such as Word2Vector or GloVe,which cannot solve the polysemy problems well.In addition,the Attention mechanism at word level fails to fully consider the importance of text hierarchy and fails to capture the relationship between sentences.Aiming at these problems,it proposes a model named BERT-HAN(bidirectional encoder representations from transformers-hierarchical Attention networks),which is based on BERT and hierarchical Attention mechanism.Firstly,the dynamic character vector containing the context semantics is generated by BERT.Then,two levels of BiGRU are used to obtain sentence representation and document representation respectively.Local Attention mechanism is introduced in the sentence representation layer to capture the important characters in each sentence,and the global Attention mechanism is introduced in the document representation layer to distinguish the importance of different sentences.Finally,the emotions are classified by Softmax.The experimental results show that the BERT-HAN model proposed in this paper can effectively improve the Macro F1 and Micro F1 values of microblog sentiment analysis,which has great practical value.
作者 赵宏 傅兆阳 赵凡 ZHAO Hong;FU Zhaoyang;ZHAO Fan(School of Computer and Communication,Lanzhou University of Technology,Lanzhou 730050,China;Gansu Institute of Science and Technology Information,Lanzhou 730000,China)
出处 《计算机工程与应用》 CSCD 北大核心 2022年第5期156-162,共7页 Computer Engineering and Applications
基金 国家自然科学基金(62166025,51668043) 甘肃省重点研发计划(21YF5GA073)。
关键词 深度学习 情感分析 特征提取 词向量 注意力机制 deep learning sentiment analysis feature extraction word embedding attention mechanism
  • 相关文献

参考文献4

二级参考文献40

  • 1李健,曹垚,王宗敏,王广印.融合k-means聚类和Hausdorff距离的散乱点云精简算法[J].武汉大学学报(信息科学版),2020,45(2):250-257. 被引量:16
  • 2郑玉明,史晶蕊,廖湖声.文本分类的神经网络模型[J].计算机工程,2005,31(21):37-39. 被引量:4
  • 3Pang B, Lee L. Seeing stars: Exploiting class relation- ships for sentiment categorization with respect to rating scales[C]//Proceedings o~ the 43rd Annual Meeting on Association for Computational Linguistics. Association for Computational Linguistics, 2005: 115-124.
  • 4LeCun Y, Bottou L, Bengio Y, et al. Gradient-based learning applied to document recognition [C]//Pro- ceedings of the IEEE, 1998, 86(11) : 2278-2324.
  • 5Yih W, He X, Meek C. Semantic parsing for single-rela- tion question answering[C]//Proceedings of ACL 2014.
  • 6Shen Y, He X, Gao J, et al. Learning semantic repre- sentations using convolutional neural networks for web search[C]//Proceedings of the companion publication of the 23rd international conference on World wide web companion. International World Wide Web Confer- ences Steering Committee, 2014: 373-374.
  • 7Blunsom P, Grefenstette E, Kalehbrenner N. A conv- olutional neural network for modelling sentences[C]// Proceedings of the 52nd Annual Meeting of the Associ- ation for Computational Linguistics. 2014.
  • 8Collobert R, Weston J, Bottou L, et al. Natural language processing (almost) from scratch[J].The Journal of Ma- chine Learning Research, 2011, 12: 2493-2537.
  • 9dos Santos C N, Gatti M. Deep convolutional neural networks for sentiment analysis of short texts[C]// Proceedings of the 25th International Conference on Computational Linguistics (COLING). Dublin, Ire-land. 2014.
  • 10Kim Y. Convolutional neural networks for sentence classification[C]//Proceedings of the EMNLP,2014.

共引文献240

同被引文献122

引证文献15

二级引证文献11

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部