Sentiment analysis is the process of extracting sentiments from data and is used to monitor the popularity of products, brands, services, and individuals. While sentiment analysis has been extensively applied to languages like English and Chinese over the past decade, languages such as Urdu and Hindi have largely been overlooked by the research community. This article introduces a machine learning approach for sentiment analysis in Urdu. The data was collected from various blogging websites and annotated by human experts. Four widely recognized supervised machine learning classifiers—Support Vector Machine (SVM), K-Nearest Neighbor (KNN), Naive Bayes, and Multinomial Logistic Regression (MLR)—were employed to classify sentiments from the preprocessed data. The results were meticulously analyzed and compared, revealing that KNN outperformed the other classifiers, achieving an accuracy of 92% on the test dataset.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Harnessing Supervised Machine Learning for Sentiment Analysis in Urdu Text

  • Abid Ali,
  • Mehmood Ul Hassan,
  • Muhammad Munwar Iqbal,
  • Habib Akbar

摘要

Sentiment analysis is the process of extracting sentiments from data and is used to monitor the popularity of products, brands, services, and individuals. While sentiment analysis has been extensively applied to languages like English and Chinese over the past decade, languages such as Urdu and Hindi have largely been overlooked by the research community. This article introduces a machine learning approach for sentiment analysis in Urdu. The data was collected from various blogging websites and annotated by human experts. Four widely recognized supervised machine learning classifiers—Support Vector Machine (SVM), K-Nearest Neighbor (KNN), Naive Bayes, and Multinomial Logistic Regression (MLR)—were employed to classify sentiments from the preprocessed data. The results were meticulously analyzed and compared, revealing that KNN outperformed the other classifiers, achieving an accuracy of 92% on the test dataset.