Skip to content
Preprint

Multiclass Sentiment Analysis for Identifying Political Viewpoints

Aug 2026 · 0 citations · 25 references
Computer Science

TL;DR

This work designs and evaluates two machine-learning approaches based on XGBoost and BERT to automatically discriminate multiple sentiment classes over political issues and figures, and demonstrates the challenge of classifying complex and contextualized political discourse sentiment.

Abstract

The rapid growth of social media has created vast amounts of political discourse, which provides valuable opportunities to analyze public opinions and identify different political perspectives. Sentiment Analysis (SA) is a core task in Natural Language Processing (NLP) that allows the computational study of attitudes and opinions in textual data, and has become increasingly important for understanding political discourse. In this work, we investigate multiclass sentiment analysis of political view- points on social media, that is to automatically discriminate multiple sentiment classes over political issues and figures. To solve this task we design and evaluate two machine-learning approaches based on XGBoost and BERT. We train and evaluate the models on a labeled dataset of political social media posts using standard classification metrics. The experimental results show that the XGBoost model reaches an F1-score of 0.2835 and the BERT- based model reaches an F1-score of 0.2806 on the test set. These results demonstrate the challenge of classifying complex and contextualized political discourse sentiment and provide a baseline for future research in multiclass political sentiment analysis.

View source

Similar papers

Review Open access Aug 2026

Sentiment Analysis of Textual Data in Social Networks: A Survey of Existing Approaches

Examination of sentiment analysis methods applied to social media text data, covering lexicon-based, machine learning, and deep learning approaches, including transformerbased architectures, as well as widely used datasets, shows how sentiment analysis can be applied to the detection of threats that exploit human emoti...

Vusal Shahbazov · 0 citations
Open access 2026

Comparative Analysis of Language Models for Sentiment Classification

Comparing and analysing the performance of several machine learning algorithms on fine-grained sentiment classification problems to examine their suitability and shortcomings for use as models in sentiment analysis suggests large language models perform significantly worse on the 28-class classification task in zero-sh...

Shangjiafeng Guo · 0 citations
Open access Aug 2026

A Multi-Algorithm Model Selector for Sentiment Classification in Public Evaluations of Government Performance Using GovBERTic

GovBERTic (Government BERTopic), a reproducible computational pipeline that operationalizes public opinion analysis by linking semantic topic discovery, multi-algorithm sentiment model selection, and topic-level sentiment aggregation within a single workflow, is developed.

Naura Ulayya Nariswari, Amri Muhaimin, Shindi Shella May Wara · 0 citations
Open access Aug 2026

SENTIMENT ANALYSIS OF TWITTER (X) RESPONSES USING NAÏVE BAYES: A CASE STUDY OF JUMBO

The rapid growth of social media platforms, especially Twitter (now rebranded as X), has made it a rich source for public opinion mining. This study focuses on analyzing public sentiment toward the animated “film Jumbo" by applying the Naïve Bayes Classifier algorithm to Twitter data. The research involves collecting t...

Nurasiah, Latifah Nur Zam Zami, Yunianto Agung Nugroho · 0 citations
Open access Aug 2026

Topic Modeling and Sentiment Analysis on News Headlines Using BERTopic and IndoBERT Models

The findings confirm that the combination of transformer-based models is effective for in-depth analysis of discourse in Indonesian-language political news headlines from a major Indonesian online news portal (detik.com).

Bagas Yana Prayoga, Qurrotul Aini, Fitroh Fitroh · 0 citations
Open access Sep 2026

Unsupervised NLP for quantifying sentiment deviation and framing in global climate discourse

Climate change news coverage varies by region and media organization. These differences show in the way news is framed, the themes chosen, and communication priorities. This study suggests a scalable and unsupervised natural language processing (NLP) framework to measure sentiment changes and framing patterns in glob...

Aditya Vasudev K, Srisakthi Saravanan, A. Vinay · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.