Skip to main content
QUICK REVIEW

[Paper Review] Urdu Speech and Text Based Sentiment Analyzer

Waqar Ahmad, Maryam Edalati|arXiv (Cornell University)|Jul 19, 2022
Sentiment Analysis and Opinion MiningComputer Science7 citations
TL;DR

This paper proposes a manually annotated Urdu sentiment analysis dataset of 10,000 tweets labeled as positive or negative, and evaluates five lexicon- and rule-based models—Naive Bayes, TextBlob, VADER, Stanza, and Flair—on this dataset. Flair achieves the highest accuracy of 70%, establishing a strong baseline for Urdu sentiment analysis using translation-based approaches with pre-trained models.

ABSTRACT

Discovering what other people think has always been a key aspect of our information-gathering strategy. People can now actively utilize information technology to seek out and comprehend the ideas of others, thanks to the increased availability and popularity of opinion-rich resources such as online review sites and personal blogs. Because of its crucial function in understanding people's opinions, sentiment analysis (SA) is a crucial task. Existing research, on the other hand, is primarily focused on the English language, with just a small amount of study devoted to low-resource languages. For sentiment analysis, this work presented a new multi-class Urdu dataset based on user evaluations. The tweeter website was used to get Urdu dataset. Our proposed dataset includes 10,000 reviews that have been carefully classified into two categories by human experts: positive, negative. The primary purpose of this research is to construct a manually annotated dataset for Urdu sentiment analysis and to establish the baseline result. Five different lexicon- and rule-based algorithms including Naivebayes, Stanza, Textblob, Vader, and Flair are employed and the experimental results show that Flair with an accuracy of 70% outperforms other tested algorithms.

Motivation & Objective

  • To create a manually annotated, multi-class Urdu sentiment dataset for low-resource language NLP research.
  • To evaluate the performance of existing lexicon- and rule-based sentiment analysis models on Urdu text.
  • To establish a baseline for future Urdu sentiment analysis research using translation-based and pre-trained models.
  • To address the scarcity of publicly available, high-quality Urdu sentiment datasets in NLP.

Proposed method

  • The dataset was collected from Twitter using Urdu user reviews and manually annotated by human experts into positive and negative sentiment classes.
  • Text was translated from Urdu to English using the Google Translate API to enable compatibility with English-based sentiment models.
  • Five lexicon-based models—Naive Bayes, TextBlob, VADER, Stanza, and Flair—were applied to the translated text for sentiment classification.
  • Flair used a pre-trained English sentiment model (en-sentiment) to predict sentiment on translated Urdu text.
  • Performance was evaluated using confusion matrices and accuracy scores on the 10,000-sample test set.
  • The study employed a pipeline approach: audio-to-text translation (if applicable), followed by sentiment classification using pre-trained models.

Experimental results

Research questions

  • RQ1How effective are existing lexicon- and rule-based sentiment analysis models on low-resource Urdu text when using English-based models after translation?
  • RQ2What is the performance gap between different sentiment analysis models on a newly created Urdu sentiment dataset?
  • RQ3Can Flair outperform other models in sentiment classification for Urdu text using translation and pre-trained English models?
  • RQ4What is the baseline accuracy achievable for Urdu sentiment analysis using a manually annotated dataset of 10,000 samples?
  • RQ5How do model performance differences reflect the challenges of low-resource language processing in NLP?

Key findings

  • Flair achieved the highest accuracy of 70% on the manually annotated Urdu dataset, outperforming all other tested models.
  • Naive Bayes and TextBlob both achieved 59% accuracy, showing moderate performance on the Urdu sentiment classification task.
  • VADER achieved 45% accuracy, indicating limited effectiveness for Urdu text when using English lexicon-based rules.
  • Stanza performed the worst with only 31% accuracy, suggesting poor generalization to Urdu when using English NLP tools.
  • The results demonstrate that Flair is the most robust model for Urdu sentiment analysis among the evaluated lexicon-based approaches.
  • The study confirms that translation-based approaches with pre-trained models can yield viable results for low-resource languages like Urdu.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.