Urdu-Punjabi Code Switched Sentiment Analysis Empowered by a Deep Learning Framework Integrating XLM-R, and GPT

Sentiment analysis is a procedure that uses computational methods, textual analysis, and natural language processing to derive significant insights from textual sources. Sentiment analysis detects and quantifies the attitudes, opinions, and emotional states that individuals convey through textual information. The current sentiment analysis research has predominantly focused on the English language, resulting in a significant lack of attention towards low-resource languages. Performing sentiment analysis on low-resource languages is challenging due to the unavailability of extensive datasets and associated resources. To overcome the challenge of unavailability of datasets we proposed Large Urdu-Punjabi code switched Corpus for Sentiment Analysis (LUPCSA-25) comprises over 10,00,000 user reviews in Urdu and Punjabi (Shahmukhi). Urdu and Punjabi domain specialists enrolled in PhD provided additional annotations to the dataset. In this study we explore the efficacy of head pruning techniques for improving the performance and computational efficiency of transformer-based models, specifically XLM-R and GPT-2, for sentiment analysis of Urdu-Punjabi code switched text. We preprocessed the input text, generate the BERT embeddings, and then feed them into the proposed classifier for sentiment classification. The performance of the proposed classifier is assessed by comparing it with baseline classifiers. The results demonstrate that the proposed classifiers with head pruning technique surpass current state-of-the art models with a precision rate of 96.4%.

Institutions

Publication Details

Journal
VAWKUM Transactions on Computer Sciences
Published
2025-07-30
DOI
https://doi.org/10.21015/vtcs.v13i2.2144
Citations
1
Primary Topic
Water Quality and Resources Studies
Type
article
Field-Weighted Citation Impact
0.82
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Urdu-Punjabi Code Switched Sentiment Analysis Empowered by a Deep Learning Framework Integrating XLM-R, and GPT

1 citations
VAWKUM Transactions on Computer Sciences
Water Quality and Resources Studies
0.82
article

Urdu-Punjabi Code Switched Sentiment Analysis Empowered by a Deep Learning Framework Integrating XLM-R, and GPT

article en
1 citations

Abstract

Sentiment analysis is a procedure that uses computational methods, textual analysis, and natural language processing to derive significant insights from textual sources. Sentiment analysis detects and quantifies the attitudes, opinions, and emotional states that individuals convey through textual information. The current sentiment analysis research has predominantly focused on the English language, resulting in a significant lack of attention towards low-resource languages. Performing sentiment analysis on low-resource languages is challenging due to the unavailability of extensive datasets and associated resources. To overcome the challenge of unavailability of datasets we proposed Large Urdu-Punjabi code switched Corpus for Sentiment Analysis (LUPCSA-25) comprises over 10,00,000 user reviews in Urdu and Punjabi (Shahmukhi). Urdu and Punjabi domain specialists enrolled in PhD provided additional annotations to the dataset. In this study we explore the efficacy of head pruning techniques for improving the performance and computational efficiency of transformer-based models, specifically XLM-R and GPT-2, for sentiment analysis of Urdu-Punjabi code switched text. We preprocessed the input text, generate the BERT embeddings, and then feed them into the proposed classifier for sentiment classification. The performance of the proposed classifier is assessed by comparing it with baseline classifiers. The results demonstrate that the proposed classifiers with head pruning technique surpass current state-of-the art models with a precision rate of 96.4%.

VAWKUM Transactions on Computer SciencesVol. 13(2)
Government College University, Faisalabad (PK), Superior University (PK), University of Faisalabad (PK), University of Sahiwal
Quality Education
Openalex Percentile: Top 20%
Water Quality and Resources Studies
0.82
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Urdu-Punjabi Code Switched Sentiment Analysis Empowered by a Deep Learning Framework Integrating XLM-R, and GPT · VAWKUM Transactions on Computer Sciences (2025) | TGRS Research Map | TGRS