Code-mixed Sentiment and Hate-speech Prediction

Anjali Yadav, Tanya Garg, Matej Klemen, Matej Ulcar, Basant Agarwal +1 more
5/21/2024
cs.CL

No official code found. Best implementation: matejklemen/sentiment-hate-speech-with-CM-models (1 star, MIT, last commit 2024-11-26).

Abstract

Code-mixed discourse combines multiple languages in a single text. It is commonly used in informal discourse in countries with several official languages, but also in many other countries in combination with English or neighboring languages. As recently large language models have dominated most natural language processing tasks, we investigated their performance in code-mixed settings for relevant tasks. We first created four new bilingual pre-trained masked language models for English-Hindi and English-Slovene languages, specifically aimed to support informal language. Then we performed an evaluation of monolingual, bilingual, few-lingual, and massively multilingual models on several languages, using two tasks that frequently contain code-mixed text, in particular, sentiment analysis and offensive language detection in social media texts. The results show that the most successful classifiers are fine-tuned bilingual models and multilingual models, specialized for social media texts, followed by non-specialized massively multilingual and monolingual models, while huge generative models are not competitive. For our affective problems, the models mostly perform slightly better on code-mixed data compared to non-code-mixed data.

View on arXivView PDF

Code Implementations(1)

MIT

The repository contains the code accompanying the paper Sentiment and hate-speech prediction with code-mixed models.

10PythonNov 28, 20231 years agoMIT

Similar Papers

Cite this paper

@article{yadav2024codemixed,
  title  = {Code-mixed Sentiment and Hate-speech Prediction},
  author = {Anjali Yadav and Tanya Garg and Matej Klemen and Matej Ulcar and Basant Agarwal and Marko Robnik Sikonja},
  year   = {2024},
  eprint = {2405.12929},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.12929v1}
}

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

Discussion