Convolutional Transformer with Sentiment-aware Attention for Sentiment Analysis
Abstract
Given certain data available for training, the keys to improving a sentiment analysis system lie in developing a good model that is capable of capturing both local and global features of texts, as well as incorporating external knowledge into the model effectively. In this paper, we propose a multi-window Convolutional Transformer (ConvTransformer) that takes the advantages of both Transformer and CNN for sentiment analysis. The proposed ConvTransformer is able to capture important local n-gram features effectively while preserving sequential information of texts. Furthermore, we propose a sentiment-aware attention mechanism to incorporate the sentiment intensity information of each word by utilizing an external knowledge base, SentiWordNet. The sentiment-aware attention mechanism takes both sentiment and position information of each token into consideration when computing attention weights, resulting in a global feature for final classification. Comparing with CNN, RNN and attention-based baseline models, our model achieves the best performance on multiple sentiment analysis datasets.
BibTeX
@inproceedings{li2020convolutional,
author = {Pengfei Li and Peixiang Zhong and Jiaheng Zhang and Kezhi Mao},
title = {{Convolutional Transformer with Sentiment-aware Attention for Sentiment Analysis}},
booktitle = {IJCNN},
year = {2020},
url = {https://openreview.net/forum?id=fyboCXlRRbo},
}Ask Althea to put this paper to the test.
Loading related content...