Computer Science ›› 2021, Vol. 48 ›› Issue (11): 307-311.doi: 10.11896/jsjkx.201000075

• Artificial Intelligence • Previous Articles     Next Articles

Text Sentiment Analysis Based on Fusion of Attention Mechanism and BiGRU

YANG Qing, ZHANG Ya-wen, ZHU Li, WU Tao   

  1. Hubei Provincial Key Laboratory of Artificial Intelligence and Smart Learning,Wuhan 430079,China
    School of Computer,Central China Normal University,Wuhan 430079,China
    National Language Resources Monitor & Research Center for Network Media,Wuhan 430079,China
  • Received:2020-10-13 Revised:2021-03-31 Online:2021-11-15 Published:2021-11-10
  • About author:YANG Qing,born in 1965,master,associate professor,is a member of China Computer Federation.Her main research interests include data mining and computer application technology.
    ZHANG Ya-wen,born in 1995,master.Her main research interests include data mining and computer application technology.
  • Supported by:
    National Natural Science Foundation of China(61532008) and National Key R & D Program of China(2017YFC0909502).

Abstract: Aiming at the lack of the ability of simple neural networks to capture the contextual semantics of texts and extract important information in texts,a sentiment analysis model FFA-BiAGRU is proposed,which integrates attention mechanism and GRU.First,we pre-process the text and vectorize the words through GloVe to reduce the vector space dimension.Then,through a hybrid model that fuses the attention mechanism with the update gate of the gating unit,it can extract important information in the text features.Finally,the text features are further extracted through the forced forward attention mechanism,and then classified by the softmax classifier.Experiments on public data sets show that the algorithm can effectively improve the sentiment ana-lysis performance.

Key words: Attention mechanism, Emotion analysis, GloVe word vector, GRU

CLC Number: 

  • TP399
[1]JHA V,SAVITHA R,SHENOY P D,et al.A novel sentiment aware dictionary for multi-domain sentiment classification[J].Computers & Electrical Engineering,2017,69:585-597.
[2]XU J Z,ZHU J,ZHAO R,et al.Sentiment Analysis of Aerospace Microblog Using SVM[J].Journal of Information Security Research,2017,3(12):1129-1133.
[3]LI P,ZHAO W D.Image fire detection algorithms based on convolutional neural networks[J].Case Studies in Thermal Engineering,2020,19:100625.
[4]TEHSEEN Z,ASSAD A,USMAN H,et al.Learning deep hie-rarchical and temporal recurrent neural networks with residual learning[J].International Journal of Machine Learning and Cybernetics,2020,11(2):873-882.
[5]YANG X Y L,XU S J,WU H,et al.Sentiment Analysis of Weibo Comment Texts Based on Extended Vocabulary and Convolutional Neural Network[J].Procedia Computer Science,2019,147:361-368.
[6]NIU C M,ZHANG G H,LI Z H.Chinese Weibo SentimentAnalysis Based on Deep Neural Network[J].Computer Systems &Applications,2018,27(11):205-210.
[7]LIAO W X,ZENG B,XU Y Y.Natural language processingmodel based on one-dimensional dilated Convolution and attention mechanism[J/OL].Computer Engineering and Applications:1-8.[2020-05-20].http://kns.cnki.net/kcms/detail/11.2127.TP.20200422.0950.002.html.
[8]WU X H,CHEN L,WEI T T,et al.Sentiment Analysis of Chinese Short Text Based on Self-Attention and Bi-LSTM[J].Journal of Chinese Information Processing,2019,33(6):100-107.
[9]ZHAI S P,YANG Y Y,QIU C,et al.Bilingual text sentimentanalysis based on attention mechanism Bi-LSTM[J].Computer Applications and Software,2019,36(12):251-255.
[10]ZHOU G,MOU N,FAN Y,et al.Deep Interest Evolution Network for Click-Through Rate Prediction[J].The Thirty-Third AAAI Conference on Artifificial Intelligence (AAAI-19),2018,33(1):5941-5948.
[11]FU Y X,LU T L,MA Z L.CNN malicious code detection technology based on one-hot[J].Computer Applications and Software,2020,37(1):304-308.
[12]MIKOLOV T,CHEN K,CORRADO G,et al.Efficient Estimation of Word Representations in Vector Space[J].Computer Ence,2013.arXiv:1301.3781.
[13]PENNINGTON J,SOCHER R,MANNING C.Glove:GlobalVectors for Word Representation[C]//Proceedings of the 2014 Conference on Empirical Methods in Natural Language Proces-sing (EMNLP).2014.
[14]CHUNG J,GULCEHRE C,CHO K H,et al.Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling[J/OL].Eprint Arxiv,2014.https://arxiv.org/pdf/1412.3555.pdf.
[15]FANG J K,CHEN P H,LIAO W X.Text classification model based on GloVe and GRU[J/OL].Computer Engineering and Applications.[2020-08-13].http://kns.cnki.net/kcms/detail/11.2127.tp.20200331.1742.006.html.
[16]WANG W,SUN Y X,QI Q J,et al.Text sentiment classification model based on BiGRU-Attention neural network[J].Application Research of Computers,2019,36(12):3558-3564.
[17]KUMAR A,KAWAHARA D,KUROHASHI S,et al.Know-ledge-enriched two-layered attention for sentiment analysis [C]//North American Chapter of the Association for Computational Linguistics.2018:253-258.
[1] ZHOU Fang-quan, CHENG Wei-qing. Sequence Recommendation Based on Global Enhanced Graph Neural Network [J]. Computer Science, 2022, 49(9): 55-63.
[2] DAI Yu, XU Lin-feng. Cross-image Text Reading Method Based on Text Line Matching [J]. Computer Science, 2022, 49(9): 139-145.
[3] ZHOU Le-yuan, ZHANG Jian-hua, YUAN Tian-tian, CHEN Sheng-yong. Sequence-to-Sequence Chinese Continuous Sign Language Recognition and Translation with Multi- layer Attention Mechanism Fusion [J]. Computer Science, 2022, 49(9): 155-161.
[4] XIONG Li-qin, CAO Lei, LAI Jun, CHEN Xi-liang. Overview of Multi-agent Deep Reinforcement Learning Based on Value Factorization [J]. Computer Science, 2022, 49(9): 172-182.
[5] RAO Zhi-shuang, JIA Zhen, ZHANG Fan, LI Tian-rui. Key-Value Relational Memory Networks for Question Answering over Knowledge Graph [J]. Computer Science, 2022, 49(9): 202-207.
[6] WANG Ming, PENG Jian, HUANG Fei-hu. Multi-time Scale Spatial-Temporal Graph Neural Network for Traffic Flow Prediction [J]. Computer Science, 2022, 49(8): 40-48.
[7] JIANG Meng-han, LI Shao-mei, ZHENG Hong-hao, ZHANG Jian-peng. Rumor Detection Model Based on Improved Position Embedding [J]. Computer Science, 2022, 49(8): 330-335.
[8] ZHU Cheng-zhang, HUANG Jia-er, XIAO Ya-long, WANG Han, ZOU Bei-ji. Deep Hash Retrieval Algorithm for Medical Images Based on Attention Mechanism [J]. Computer Science, 2022, 49(8): 113-119.
[9] SUN Qi, JI Gen-lin, ZHANG Jie. Non-local Attention Based Generative Adversarial Network for Video Abnormal Event Detection [J]. Computer Science, 2022, 49(8): 172-177.
[10] YAN Jia-dan, JIA Cai-yan. Text Classification Method Based on Information Fusion of Dual-graph Neural Network [J]. Computer Science, 2022, 49(8): 230-236.
[11] ZHANG Ying-tao, ZHANG Jie, ZHANG Rui, ZHANG Wen-qiang. Photorealistic Style Transfer Guided by Global Information [J]. Computer Science, 2022, 49(7): 100-105.
[12] ZENG Zhi-xian, CAO Jian-jun, WENG Nian-feng, JIANG Guo-quan, XU Bin. Fine-grained Semantic Association Video-Text Cross-modal Entity Resolution Based on Attention Mechanism [J]. Computer Science, 2022, 49(7): 106-112.
[13] XU Ming-ke, ZHANG Fan. Head Fusion:A Method to Improve Accuracy and Robustness of Speech Emotion Recognition [J]. Computer Science, 2022, 49(7): 132-141.
[14] MENG Yue-bo, MU Si-rong, LIU Guang-hui, XU Sheng-jun, HAN Jiu-qiang. Person Re-identification Method Based on GoogLeNet-GMP Based on Vector Attention Mechanism [J]. Computer Science, 2022, 49(7): 142-147.
[15] JIN Fang-yan, WANG Xiu-li. Implicit Causality Extraction of Financial Events Integrating RACNN and BiLSTM [J]. Computer Science, 2022, 49(7): 179-186.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!