SentiLARE: Sentiment-Aware Language Representation Learning with Linguistic Knowledge

Pei Ke, Haozhe Ji, Siyang Liu, Xiaoyan Zhu, Minlie Huang
11/6/2019
cs.CL

Official code: thu-coai/SentiLARE (84 stars, Python, PyTorch, last commit 2021-04-28).

Abstract

Most of the existing pre-trained language representation models neglect to consider the linguistic knowledge of texts, which can promote language understanding in NLP tasks. To benefit the downstream tasks in sentiment analysis, we propose a novel language representation model called SentiLARE, which introduces word-level linguistic knowledge including part-of-speech tag and sentiment polarity (inferred from SentiWordNet) into pre-trained models.

Show full abstract

We first propose a context-aware sentiment attention mechanism to acquire the sentiment polarity of each word with its part-of-speech tag by querying SentiWordNet. Then, we devise a new pre-training task called label-aware masked language model to construct knowledge-aware language representation. Experiments show that SentiLARE obtains new state-of-the-art performance on a variety of sentiment analysis tasks.

View on arXivView PDF

Code Implementations(1)

thu-coai/SentiLAREOfficial100%
PyTorch

Codes for our paper "SentiLARE: Sentiment-Aware Language Representation Learning with Linguistic Knowledge" (EMNLP 2020)

8412PythonApr 8, 20205 years ago
bertlinguistic-featurespart-of-speechpretrained-modelspytorch+3 more

Similar Papers

Cite this paper

@article{ke2019sentilare,
  title  = {SentiLARE: Sentiment-Aware Language Representation Learning with Linguistic Knowledge},
  author = {Pei Ke and Haozhe Ji and Siyang Liu and Xiaoyan Zhu and Minlie Huang},
  year   = {2019},
  eprint = {1911.02493},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.02493}
}

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

Discussion