A Unified Framework for Pun Generation with Humor Principles

Yufei Tian, Divyanshu Sheth, Nanyun Peng
10/24/2022
cs.CL

Official code: PlusLabNLP/Unified_PunGen (1 star, Python, last commit 2023-03-15).

Abstract

We propose a unified framework to generate both homophonic and homographic puns to resolve the split-up in existing works. Specifically, we incorporate three linguistic attributes of puns to the language models: ambiguity, distinctiveness, and surprise.

Show full abstract

Our framework consists of three parts: 1) a context words/phrases selector to promote the aforementioned attributes, 2) a generation model trained on non-pun sentences to incorporate the context words/phrases into the generation output, and 3) a label predictor that learns the structure of puns which is used to steer the generation model at inference time. Evaluation results on both pun types demonstrate the efficacy of our model over strong baselines.

View on arXivView PDF

Code Implementations(1)

Paper for this EMNLP findings paper: A Unified Framework for Pun Generation with Humor Principles. Link: https://aclanthology.org/2022.findings-emnlp.237.pdf

11Python, ShellMar 15, 20233 years ago

Similar Papers

Cite this paper

@article{tian2022unified,
  title  = {A Unified Framework for Pun Generation with Humor Principles},
  author = {Yufei Tian and Divyanshu Sheth and Nanyun Peng},
  year   = {2022},
  eprint = {2210.13055},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.13055}
}

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

Discussion