Emotion Classification in a Resource Constrained Language Using Transformer-based Approach

Avishek Das, Omar Sharif, Mohammed Moshiul Hoque, Iqbal H. Sarker
4/17/2021
cs.CL

Official code: sagorbrur/bangla-bert (84 stars, MIT, last commit 2025-04-29). 1 more implementation below.

Abstract

Although research on emotion classification has significantly progressed in high-resource languages, it is still infancy for resource-constrained languages like Bengali. However, unavailability of necessary language processing tools and deficiency of benchmark corpora makes the emotion classification task in Bengali more challenging and complicated. This work proposes a transformer-based technique to classify the Bengali text into one of the six basic emotions: anger, fear, disgust, sadness, joy, and surprise. A Bengali emotion corpus consists of 6243 texts is developed for the classification task. Experimentation carried out using various machine learning (LR, RF, MNB, SVM), deep neural networks (CNN, BiLSTM, CNN+BiLSTM) and transformer (Bangla-BERT, m-BERT, XLM-R) based approaches. Experimental outcomes indicate that XLM-R outdoes all other techniques by achieving the highest weighted $f_1$-score of $69.73\%$ on the test data. The dataset is publicly available at https://github.com/omar-sharif03/NAACL-SRW-2021.

View on arXivView PDF

Code Implementations(2)

MIT

Bangla-Bert is a pretrained bert model for Bengali language

8425Jupyter NotebookSep 8, 20201 years agoMIT
banglabangla-nlpbertlmnlp+1 more

Code and Dataset

123Python, Jupyter NotebookApr 12, 20215 years ago

Similar Papers

Cite this paper

@article{das2021emotion,
  title  = {Emotion Classification in a Resource Constrained Language Using Transformer-based Approach},
  author = {Avishek Das and Omar Sharif and Mohammed Moshiul Hoque and Iqbal H. Sarker},
  year   = {2021},
  eprint = {2104.08613},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08613}
}

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

Discussion