Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism

Currently, various attention-based neural networks have achieved successes in sentiment classification tasks, as attention mechanism is capable of focusing on those words contributing more to the sentiment polarity prediction than others. However, the major drawback of these approaches is that they...

Full description

Bibliographic Details
Main Authors: Kefei Cheng, Yanan Yue, Zhiwen Song
Format: Article
Language:English
Published: IEEE 2020-01-01
Series:IEEE Access
Subjects:
Online Access:https://ieeexplore.ieee.org/document/8962060/
id doaj-cd24c2985f844b4b8856d93501f0c490
record_format Article
spelling doaj-cd24c2985f844b4b8856d93501f0c4902021-03-30T03:06:48ZengIEEEIEEE Access2169-35362020-01-018163871639610.1109/ACCESS.2020.29671038962060Sentiment Classification Based on Part-of-Speech and Self-Attention MechanismKefei Cheng0https://orcid.org/0000-0003-4786-7261Yanan Yue1https://orcid.org/0000-0002-1923-5497Zhiwen Song2https://orcid.org/0000-0002-8808-1356College of Cyber Security and Information Law, Chongqing University of Posts and Telecommunications, Chongqing, ChinaCollege of Computer Science and Technology, Chongqing University of Posts and Telecommunications, Chongqing, ChinaCollege of Computer Science and Technology, Chongqing University of Posts and Telecommunications, Chongqing, ChinaCurrently, various attention-based neural networks have achieved successes in sentiment classification tasks, as attention mechanism is capable of focusing on those words contributing more to the sentiment polarity prediction than others. However, the major drawback of these approaches is that they only pay attention to the words, the sentimental information contained in the part-of-speech(POS) is ignored. To address this problem, in this paper, we propose Part-of-Speech based Transformer Attention Network(pos-TAN). This model not only uses the Self-Attention mechanism to learn the feature expression of the text but also incorporates the POS-Attention, which uses to capture sentimental information contained in part-of-speech. In addition, our innovative introduction of the Focal Loss effectively alleviates the impact of sample imbalance on model performance. We conduct substantial experiments on various datasets, and the encouraging results indicate the efficacy of our proposed approach.https://ieeexplore.ieee.org/document/8962060/Part-of-speechself-attention mechanismsentiment classificationfocal loss
collection DOAJ
language English
format Article
sources DOAJ
author Kefei Cheng
Yanan Yue
Zhiwen Song
spellingShingle Kefei Cheng
Yanan Yue
Zhiwen Song
Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism
IEEE Access
Part-of-speech
self-attention mechanism
sentiment classification
focal loss
author_facet Kefei Cheng
Yanan Yue
Zhiwen Song
author_sort Kefei Cheng
title Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism
title_short Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism
title_full Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism
title_fullStr Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism
title_full_unstemmed Sentiment Classification Based on Part-of-Speech and Self-Attention Mechanism
title_sort sentiment classification based on part-of-speech and self-attention mechanism
publisher IEEE
series IEEE Access
issn 2169-3536
publishDate 2020-01-01
description Currently, various attention-based neural networks have achieved successes in sentiment classification tasks, as attention mechanism is capable of focusing on those words contributing more to the sentiment polarity prediction than others. However, the major drawback of these approaches is that they only pay attention to the words, the sentimental information contained in the part-of-speech(POS) is ignored. To address this problem, in this paper, we propose Part-of-Speech based Transformer Attention Network(pos-TAN). This model not only uses the Self-Attention mechanism to learn the feature expression of the text but also incorporates the POS-Attention, which uses to capture sentimental information contained in part-of-speech. In addition, our innovative introduction of the Focal Loss effectively alleviates the impact of sample imbalance on model performance. We conduct substantial experiments on various datasets, and the encouraging results indicate the efficacy of our proposed approach.
topic Part-of-speech
self-attention mechanism
sentiment classification
focal loss
url https://ieeexplore.ieee.org/document/8962060/
work_keys_str_mv AT kefeicheng sentimentclassificationbasedonpartofspeechandselfattentionmechanism
AT yananyue sentimentclassificationbasedonpartofspeechandselfattentionmechanism
AT zhiwensong sentimentclassificationbasedonpartofspeechandselfattentionmechanism
_version_ 1724184024564367360