Detecting humor is a necessary step towards language understanding. However, work on computational humor for Portuguese is still limited. For this language, we tackle the task of pun location. With a corpus of annotated punning texts, we fine-tune available encoder models for labeling words in context as punning or not. We achieve an F1 of 0.75 with a BERT-based model and further improve precision with post-processing. Moreover, we show that a model trained for pun location can be used for pun detection as well, performing close to a model specifically trained on the latter task, but with the advantage of identifying the pun words, thus contributing to explainability.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Sequence Labeling for Pun Location and Detection in Portuguese

  • Patrícia Gameiro,
  • Marcio Lima Inácio,
  • Hugo Gonçalo Oliveira,
  • Ana Alves

摘要

Detecting humor is a necessary step towards language understanding. However, work on computational humor for Portuguese is still limited. For this language, we tackle the task of pun location. With a corpus of annotated punning texts, we fine-tune available encoder models for labeling words in context as punning or not. We achieve an F1 of 0.75 with a BERT-based model and further improve precision with post-processing. Moreover, we show that a model trained for pun location can be used for pun detection as well, performing close to a model specifically trained on the latter task, but with the advantage of identifying the pun words, thus contributing to explainability.