Sentiment-Aware Word and Sentence Level Pre-training for Sentiment Analysis

Shuai Fan, Chen Lin, Haonan Li, Zhenghao Lin, Jinsong Su +4 more
10/18/2022
cs.CL

Official code: XMUDM/SentiWSP (22 stars, Python, last commit 2022-11-18).

Abstract

Most existing pre-trained language representation models (PLMs) are sub-optimal in sentiment analysis tasks, as they capture the sentiment information from word-level while under-considering sentence-level information. In this paper, we propose SentiWSP, a novel Sentiment-aware pre-trained language model with combined Word-level and Sentence-level Pre-training tasks.

Show full abstract

The word level pre-training task detects replaced sentiment words, via a generator-discriminator framework, to enhance the PLM's knowledge about sentiment words. The sentence level pre-training task further strengthens the discriminator via a contrastive learning framework, with similar sentences as negative samples, to encode sentiments in a sentence. Extensive experimental results show that SentiWSP achieves new state-of-the-art performance on various sentence-level and aspect-level sentiment classification benchmarks. We have made our code and model publicly available at https://github.com/XMUDM/SentiWSP.

View on arXivView PDF

Code Implementations(1)

XMUDM/SentiWSPOfficial100%
224PythonOct 18, 20224 years ago

Similar Papers

Cite this paper

@article{fan2022sentimentaware,
  title  = {Sentiment-Aware Word and Sentence Level Pre-training for Sentiment Analysis},
  author = {Shuai Fan and Chen Lin and Haonan Li and Zhenghao Lin and Jinsong Su and Hang Zhang and Yeyun Gong and Jian Guo and Nan Duan},
  year   = {2022},
  eprint = {2210.09803},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.09803}
}

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/2210.09803.svg)](https://codeofpaper.com/paper/2210.09803)

Discussion