Sarcasm Detection in a Less-Resourced Language

Lazar Đoković, Marko Robnik-Šikonja
10/16/2024
cs.LGcs.CL

No official code found. Best implementation: GalaxyGHz/Diploma (0 stars, CC0-1.0, last commit 2025-02-19).

Abstract

The sarcasm detection task in natural language processing tries to classify whether an utterance is sarcastic or not. It is related to sentiment analysis since it often inverts surface sentiment. Because sarcastic sentences are highly dependent on context, and they are often accompanied by various non-verbal cues, the task is challenging. Most of related work focuses on high-resourced languages like English. To build a sarcasm detection dataset for a less-resourced language, such as Slovenian, we leverage two modern techniques: a machine translation specific medium-size transformer model, and a very large generative language model. We explore the viability of translated datasets and how the size of a pretrained transformer affects its ability to detect sarcasm. We train ensembles of detection models and evaluate models' performance. The results show that larger models generally outperform smaller ones and that ensembling can slightly improve sarcasm detection performance. Our best ensemble approach achieves an $\text{F}_1$-score of 0.765 which is close to annotators' agreement in the source language.

View on arXivView PDF

Code Implementations(1)

GalaxyGHz/DiplomaCommunity100%
CC0-1.0

Diploma Thesis Code

01Shell, PythonAug 11, 20241 years agoCC0-1.0

Similar Papers

Cite this paper

@article{okovi2024sarcasm,
  title  = {Sarcasm Detection in a Less-Resourced Language},
  author = {Lazar Đoković and Marko Robnik-Šikonja},
  year   = {2024},
  eprint = {2410.12704},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.12704v1}
}

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

Discussion