AmbiPun: Generating Humorous Puns with Ambiguous Context

Anirudh Mittal, Yufei Tian, Nanyun Peng
5/4/2022
cs.CLcs.AIcs.LG

Official code: PlusLabNLP/AmbiPun (0 stars, Jupyter Notebook, last commit 2022-05-26).

Abstract

In this paper, we propose a simple yet effective way to generate pun sentences that does not require any training on existing puns. Our approach is inspired by humor theories that ambiguity comes from the context rather than the pun word itself.

Show full abstract

Given a pair of definitions of a pun word, our model first produces a list of related concepts through a reverse dictionary. We then utilize one-shot GPT3 to generate context words and then generate puns incorporating context words from both concepts. Human evaluation shows that our method successfully generates pun 52\% of the time, outperforming well-crafted baselines and the state-of-the-art models by a large margin.

View on arXivView PDF

Code Implementations(1)

PlusLabNLP/AmbiPunOfficial100%

[NAACL 2022] Generating Homographic Puns with Ambiguous Context

00Jupyter NotebookApr 19, 20224 years ago

Similar Papers

Cite this paper

@article{mittal2022ambipun,
  title  = {AmbiPun: Generating Humorous Puns with Ambiguous Context},
  author = {Anirudh Mittal and Yufei Tian and Nanyun Peng},
  year   = {2022},
  eprint = {2205.01825},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.01825}
}

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

Discussion