SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.01825 · NAACL · 2022

AMBIPUN: Generating Puns with Ambiguous Context

Nanyun Peng, Yufei Tian, Anirudh Mittal

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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. Given a pair of definitions of a pun word, 1 our model first produces a list of related concepts through a reverse dictionary to identify unambiguous words to represent the pun and the alternative senses. We then utilize one-shot GPT3 to generate context words and then generate puns incorporating context words from both senses. Human evaluation shows that our method successfully generates puns 52% of the time, outperforming well crafted baselines and the state-of-the-art models by a large margin. * Equal contribution. † Work done when the author is interning at UCLA. 1 We focus on generating homographic puns where two or more meanings of a word form an intended humorous effect.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2205.01825")
get_code_for_paper("2205.01825")
have("2205.01825")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2205.01825.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2205.01825.svg)](https://syntology.ai/paper/2205.01825)

Connect an agent — have() is free.