Comparative analysis of multilingual transformer models for Urdu sentiment analysis


Abstract

Over 169 million people worldwide, concentrated mainly in Pakistan and India, speak Urdu, contributing to a rapidly growing content stream across social media and digital platforms. The widespread adoption of the internet has fueled a rapid surge in user-generated Urdu content, including user opinions and reviews from various online platforms. Despite the vast volume, language resources and tools for processing and analyzing Urdu text remain scarce, as most natural language processing (NLP) tools and models are primarily developed for English and other widely spoken languages. This research aims to address this gap by systematically evaluating the performance of multilingual transformer models for sentiment analysis of Urdu text, drawing on the Urdu Corpus for Sentiment Analysis (UCSA). This study compares the performance of mBERT, DistilBERT-multilingual-cased, and XLM-RoBERTa-base using metrics such as test accuracy, F1 score, precision, and recall. The findings indicate that the XLM-RoBERTa-base model outperforms its counterparts, achieving the highest test accuracy of 0.795, an F1-score of 0.795, a precision of 0.799, and a recall of 0.795. These results suggest that XLM-RoBERTa-base is a highly effective model for sentiment analysis of Urdu text, offering a robust solution for sentiment classification in the Urdu language.
Ask to review this manuscript

Notes for potential reviewers

  • Volunteering is not a guarantee that you will be asked to review. There are many reasons: reviewers must be qualified, there should be no conflicts of interest, a minimum of two reviewers have already accepted an invitation, etc.
  • This is NOT OPEN peer review. The review is single-blind, and all recommendations are sent privately to the Academic Editor handling the manuscript. All reviews are published and reviewers can choose to sign their reviews.
  • What happens after volunteering? It may be a few days before you receive an invitation to review with further instructions. You will need to accept the invitation to then become an official referee for the manuscript. If you do not receive an invitation it is for one of many possible reasons as noted above.

  • PeerJ Computer Science does not judge submissions based on subjective measures such as novelty, impact or degree of advance. Effectively, reviewers are asked to comment on whether or not the submission is scientifically and technically sound and therefore deserves to join the scientific literature. Our Peer Review criteria can be found on the "Editorial Criteria" page - reviewers are specifically asked to comment on 3 broad areas: "Basic Reporting", "Experimental Design" and "Validity of the Findings".
  • Reviewers are expected to comment in a timely, professional, and constructive manner.
  • Until the article is published, reviewers must regard all information relating to the submission as strictly confidential.
  • When submitting a review, reviewers are given the option to "sign" their review (i.e. to associate their name with their comments). Otherwise, all review comments remain anonymous.
  • All reviews of published articles are published. This includes manuscript files, peer review comments, author rebuttals and revised materials.
  • Each time a decision is made by the Academic Editor, each reviewer will receive a copy of the Decision Letter (which will include the comments of all reviewers).

If you have any questions about submitting your review, please email us at [email protected].