KESA: A Knowledge Enhanced Approach For Sentiment Analysis

Qinghua Zhao, Shuai Ma, Shuo Ren
2/24/2022
cs.CLcs.AI

Official code: lshowway/KESA (31 stars, Python, last commit 2023-05-03).

Abstract

Though some recent works focus on injecting sentiment knowledge into pre-trained language models, they usually design mask and reconstruction tasks in the post-training phase. In this paper, we aim to benefit from sentiment knowledge in a lighter way.

Show full abstract

To achieve this goal, we study sentence-level sentiment analysis and, correspondingly, propose two sentiment-aware auxiliary tasks named sentiment word cloze and conditional sentiment prediction. The first task learns to select the correct sentiment words within the input, given the overall sentiment polarity as prior knowledge. On the contrary, the second task predicts the overall sentiment polarity given the sentiment polarity of the word as prior knowledge. In addition, two kinds of label combination methods are investigated to unify multiple types of labels in each task. We argue that more information can promote the models to learn more profound semantic representation. We implement it in a straightforward way to verify this hypothesis. The experimental results demonstrate that our approach consistently outperforms pre-trained models and is additive to existing knowledge-enhanced post-trained models. The code and data are released at https://github.com/lshowway/KESA.

View on arXivView PDF

Code Implementations(1)

lshowway/KESAOfficial100%

The source code of KESA

310PythonJan 16, 20223 years ago
enhancementssentiment-analysissentiment-dictionary

Similar Papers

Cite this paper

@article{zhao2022kesa,
  title  = {KESA: A Knowledge Enhanced Approach For Sentiment Analysis},
  author = {Qinghua Zhao and Shuai Ma and Shuo Ren},
  year   = {2022},
  eprint = {2202.12093},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.12093}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.12093.svg)](https://codeofpaper.com/paper/2202.12093)

Discussion