Multi-Label Sentiment Analysis on 100 Languages with Dynamic Weighting for Label Imbalance

Selim F. Yilmaz, E. Batuhan Kaynak, Aykut Koç, Hamdi Dibeklioğlu, Suleyman S. Kozat
8/26/2020
cs.LGcs.CLstat.ML

Official code: selimfirat/multilingual-sentiment-analysis (0 stars, Python, last commit 2023-10-09).

Abstract

We investigate cross-lingual sentiment analysis, which has attracted significant attention due to its applications in various areas including market research, politics and social sciences. In particular, we introduce a sentiment analysis framework in multi-label setting as it obeys Plutchik's wheel of emotions.

Show full abstract

We introduce a novel dynamic weighting method that balances the contribution from each class during training, unlike previous static weighting methods that assign non-changing weights based on their class frequency. Moreover, we adapt the focal loss that favors harder instances from single-label object recognition literature to our multi-label setting. Furthermore, we derive a method to choose optimal class-specific thresholds that maximize the macro-f1 score in linear time complexity. Through an extensive set of experiments, we show that our method obtains the state-of-the-art performance in 7 of 9 metrics in 3 different languages using a single model compared to the common baselines and the best-performing methods in the SemEval competition. We publicly share our code for our model, which can perform sentiment analysis in 100 languages, to facilitate further research.

View on arXivView PDF

Code Implementations(1)

00Python, ShellOct 9, 20233 years ago

Similar Papers

Cite this paper

@article{yilmaz2020multilabel,
  title  = {Multi-Label Sentiment Analysis on 100 Languages with Dynamic Weighting for Label Imbalance},
  author = {Selim F. Yilmaz and E. Batuhan Kaynak and Aykut Koç and Hamdi Dibeklioğlu and Suleyman S. Kozat},
  year   = {2020},
  eprint = {2008.11573},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.11573}
}

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

Discussion