A Short Text Sentiment Analysis Model Combined with Attention Mechanism of Bidirectional Affective Words

Author:

Xu Yong,Li Xiaoyu,Wang Hengna,Chang Hao

Abstract

Short text sentiment in social media platforms has important research value. Due to the convolution kernel parameter sharing and pooling operation, convolutional neural network training speed is fast, and the effect is also good. However, most work such as max-pooling, average-pooling, more or less discard some of the secondary features, which makes the final expression of emotion possibly biased. So, in this paper, the attention mechanism applies to the pooling layer of CNN, and a Convolutional Neural Network based on double sentiment word attention pooling (DSA-CNN) is proposed. Each feature has its weight to be calculated. We also note that in the attention mechanism of text classification, the attention query vector is usually randomly initialized during network training, rather than using an existing vector--the semantic information of the previous moment, as in machine translation. Therefore, we use the emotion dictionary and emotion corpus to train bidirectional affective word vectors, so that the emotion-related features can interact with them in the attention. The experiment shows that DSA-CNN has achieved better performance than the classical classification model in a dataset of Weibo nCoV Data, NLPCC 2014, and yf_dianping. The accuracy of the model is 2.18% higher than that of the second-best model. Besides, the convergence rate of DSA-CNN is also significantly improved. The highest accuracy was achieved only in the third epochs, while CNN using the max-pooling needed 14 epochs.

Publisher

Darcy & Roy Press Co. Ltd.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3