Knowledge-Enriched Transformer for Emotion Detection in Textual Conversations

Peixiang Zhong, Di Wang, Chunyan Miao
9/24/2019
cs.CLcs.AIcs.LG
transformer-attention

Official code: zhongpeixiang/KET (80 stars, Python, GPL-3.0, last commit 2019-11-25).

Abstract

Messages in human conversations inherently convey emotions. The task of detecting emotions in textual conversations leads to a wide range of applications such as opinion mining in social networks.

Show full abstract

However, enabling machines to analyze emotions in conversations is challenging, partly because humans often rely on the context and commonsense knowledge to express emotions. In this paper, we address these challenges by proposing a Knowledge-Enriched Transformer (KET), where contextual utterances are interpreted using hierarchical self-attention and external commonsense knowledge is dynamically leveraged using a context-aware affective graph attention mechanism. Experiments on multiple textual conversation datasets demonstrate that both context and commonsense knowledge are consistently beneficial to the emotion detection performance. In addition, the experimental results show that our KET model outperforms the state-of-the-art models on most of the tested datasets in F1 score.

View on arXivView PDF

Code Implementations(1)

zhongpeixiang/KETOfficial100%
GPL-3.0

The PyTorch code for paper "Knowledge-Enriched Transformer for Emotion Detection in Textual Conversations"

8027PythonAug 14, 20197 years agoGPL-3.0

Similar Papers

Cite this paper

@article{zhong2019knowledgeenriched,
  title  = {Knowledge-Enriched Transformer for Emotion Detection in Textual Conversations},
  author = {Peixiang Zhong and Di Wang and Chunyan Miao},
  year   = {2019},
  eprint = {1909.10681},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.10681}
}

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

Discussion