arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1904.06828cs.CL
收藏

一语双关

Pun Generation with Surprise

Stanford University(斯坦福大学);University of Southern California(南加州大学)

He He, Nanyun Peng, Percy Liang

摘要:

我们解决了给定一对同音异义词生成双关句的问题(例如,“死”和“染”)。由于缺乏大量的双关语语料库,有监督的文本生成是不合适的,即使存在这样的语料库,模仿也与生成新颖的内容不一致。在本文中,我们提出了一种无监督的双关语生成方法,使用非幽默文本语料库和我们所说的局部-全局双关原则:我们认为在双关语句子中,双关语之间存在很强的关联(例如,“dyed”)和遥远的上下文,以及替代词(例如,“死”和直接上下文。这种对比创造了惊喜,从而产生了幽默。我们以两种方式实例化这一原则的双关语生成:(i)作为一个语言模型下的概率比的基础上的措施,和(ii)检索和编辑方法的基础上,建议由跳过语法模型的话。人工评估表明,我们的检索和编辑方法成功地生成了31%的双关语,是神经生成基线成功率的三倍。

英文摘要:

We tackle the problem of generating a pun sentence given a pair of homophones (e.g., "died" and "dyed"). Supervised text generation is inappropriate due to the lack of a large corpus of puns, and even if such a corpus existed, mimicry is at odds with generating novel content. In this paper, we propose an unsupervised approach to pun generation using a corpus of unhumorous text and what we call the local-global surprisal principle: we posit that in a pun sentence, there is a strong association between the pun word (e.g., "dyed") and the distant context, as well as a strong association between the alternative word (e.g., "died") and the immediate context. This contrast creates surprise and thus humor. We instantiate this principle for pun generation in two ways: (i) as a measure based on the ratio of probabilities under a language model, and (ii) a retrieve-and-edit approach based on words suggested by a skip-gram model. Human evaluation shows that our retrieve-and-edit approach generates puns successfully 31% of the time, tripling the success rate of a neural generation baseline.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑