SKEP: Sentiment Knowledge Enhanced Pre-training for Sentiment Analysis

Hao Tian, Can Gao, Xinyan Xiao, Hao Liu, Bolei He +3 more
5/12/2020
cs.CL

Official code: baidu/Senta (2,016 stars, Apache-2.0, last commit 2024-08-20).

Abstract

Recently, sentiment analysis has seen remarkable advance with the help of pre-training approaches. However, sentiment knowledge, such as sentiment words and aspect-sentiment pairs, is ignored in the process of pre-training, despite the fact that they are widely used in traditional sentiment analysis approaches. In this paper, we introduce Sentiment Knowledge Enhanced Pre-training (SKEP) in order to learn a unified sentiment representation for multiple sentiment analysis tasks. With the help of automatically-mined knowledge, SKEP conducts sentiment masking and constructs three sentiment knowledge prediction objectives, so as to embed sentiment information at the word, polarity and aspect level into pre-trained sentiment representation. In particular, the prediction of aspect-sentiment pairs is converted into multi-label classification, aiming to capture the dependency between words in a pair. Experiments on three kinds of sentiment tasks show that SKEP significantly outperforms strong pre-training baseline, and achieves new state-of-the-art results on most of the test datasets. We release our code at https://github.com/baidu/Senta.

View on arXivView PDF

Code Implementations(1)

baidu/SentaOfficial100%
Apache-2.0

Baidu's open-source Sentiment Analysis System.

2,016360Shell, PythonJul 2, 20182 years agoApache-2.0
aspect-level-sentimentnatural-language-processingopinion-target-extractionpaddlepaddlesentiment-analysis+1 more

Similar Papers

Cite this paper

@article{tian2020skep,
  title  = {SKEP: Sentiment Knowledge Enhanced Pre-training for Sentiment Analysis},
  author = {Hao Tian and Can Gao and Xinyan Xiao and Hao Liu and Bolei He and Hua Wu and Haifeng Wang and Feng Wu},
  year   = {2020},
  eprint = {2005.05635},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.05635}
}

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

Discussion