基于BERT和双通道注意力的文本情感分类模型
作者:
作者单位:

上海理工大学光电信息与计算机工程学院,上海, 200093

作者简介:

通讯作者:

基金项目:


Text Sentiment Classification Model Based on BERT and Dual Channel Attention
Author:
Affiliation:

School of Optical-Electrical & Computer Engineering, University of Shanghai for Science & Technology, Shanghai, 200093, China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
    摘要:

    对于句子级文本情感分析问题,目前的深度学习方法未能充分运用情感词、否定词、程度副词等情感语言资源。提出一种基于变换器的双向编码器表征技术(Bidirectional encoder representations from transformers,BERT)和双通道注意力的新模型。基于双向门控循环单元(BiGRU)神经网络的通道负责提取语义特征,而基于全连接神经网络的通道负责提取情感特征;同时,在两个通道中均引入注意力机制以更好地提取关键信息,并且均采用预训练模型BERT提供词向量,通过BERT依据上下文语境对词向量的动态调整,将真实情感语义嵌入到模型;最后,通过对双通道的语义特征与情感特征进行融合,获取最终语义表达。实验结果表明,相比其他词向量工具,BERT的特征提取能力更强,而情感信息通道和注意力机制增强了模型捕捉情感语义的能力,明显提升了情感分类性能,且在收敛速度和稳定性上更优。

    Abstract:

    As for sentence-level emotion analysis, current deep learning methods fail to make full use of emotional language resources such as emotion words, negative words and degree adverbs. A new model is proposed based on bidirectional encoder representations from transformers (BERT) and dual channel attention. One channel based on bi-directional GRU (BiGRU) neural network is responsible for extracting semantic features, while the other based on full connection neural network is responsible for extracting emotional features. At the same time, attention mechanism is introduced into both the channels to better extract key information, and the pre-trained model Bert is used to provide word vectors and thereafter adjust them dynamically according to the context so as to embed real emotional semantic into the model. The final semantic expression is obtained through the fusion of semantic features and emotional features from the two channels. The experimental results show that, compared with other word vector tools, BERT has a better feature extraction ability, while the emotional information channel and the attention mechanism enhance the model’s ability to capture emotional semantics, which significantly improves the performance of emotion classification and its convergence speed and stability as well.

    参考文献
    相似文献
    引证文献
引用本文

谢润忠,李烨.基于BERT和双通道注意力的文本情感分类模型[J].数据采集与处理,2020,35(4):642-652

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
历史
  • 收稿日期:2019-08-01
  • 最后修改日期:2019-11-26
  • 录用日期:
  • 在线发布日期: 2020-08-07