Humor Detection: A Transformer Gets the Last Laugh

Orion Weller, Kevin Seppi
8/31/2019
cs.CLcs.LG

Official code: orionw/RedditHumorDetection (84 stars, MIT, last commit 2023-05-22).

Abstract

Much previous work has been done in attempting to identify humor in text. In this paper we extend that capability by proposing a new task: assessing whether or not a joke is humorous. We present a novel way of approaching this problem by building a model that learns to identify humorous jokes based on ratings gleaned from Reddit pages, consisting of almost 16,000 labeled instances. Using these ratings to determine the level of humor, we then employ a Transformer architecture for its advantages in learning from sentence context. We demonstrate the effectiveness of this approach and show results that are comparable to human performance. We further demonstrate our model's increased capabilities on humor identification problems, such as the previously created datasets for short jokes and puns. These experiments show that this method outperforms all previous work done on these tasks, with an F-measure of 93.1% for the Puns dataset and 98.6% on the Short Jokes dataset.

View on arXivView PDF

Code Implementations(1)

MIT

Code and datasets for the paper "Humor Detection: A Transformer Gets the Last Laugh"

8418Shell, PythonAug 28, 20193 years agoMIT

Similar Papers

Cite this paper

@article{weller2019humor,
  title  = {Humor Detection: A Transformer Gets the Last Laugh},
  author = {Orion Weller and Kevin Seppi},
  year   = {2019},
  eprint = {1909.00252},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.00252}
}

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

Discussion