Litcius/Paper detail

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

Kefei Cheng, Yanan Yue, Zhiwen Song

2020IEEE Access50 citationsDOIOpen Access PDF

Abstract

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.

Topics & Concepts

Computer scienceSentiment analysisMechanism (biology)TransformerArtificial intelligenceArtificial neural networkSpeech recognitionFeature (linguistics)Machine learningNatural language processingLinguisticsEpistemologyVoltagePhysicsPhilosophyQuantum mechanicsSentiment Analysis and Opinion MiningTopic ModelingText and Document Classification Technologies