Evaluating Pre-Trained Transformer-Based Models for Political Sentiment Analysis on Social Media

Sentiment analysis has broad applications in social media networks due to the high volume of user activity on diverse topics such as political debates. Transformer-based neural networks are among the technologies that achieve significant results in text classification. This study evaluates twelve pre-trained transformer-based models through fine-tuning for sentiment classification of Spanish-language political texts from the social media network X. Some of these models were originally created in Spanish, while others are multilingual models that include Spanish. The twelve models were trained to specialize in sentiment classification on political topics, using the same training and testing parameters, in order to compare them under equal conditions during fine-tuning. Good results were obtained with the precision, recall, and F1-score metrics mainly in multilingual models but also in some models originally created in Spanish. The study includes the detailed results of the evaluation in training and testing for the three metrics employed.

Authors

Institutions

Publication Details

Journal
Computation
Published
2026-05-31
DOI
https://doi.org/10.3390/computation14060127
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluating Pre-Trained Transformer-Based Models for Political Sentiment Analysis on Social Media

María Patricia Tzili Cruz, Salvador Contreras Hernández, Alma Alejandra Luna Gómez, José Martín Espínola Sánchez et al.
Computation
Sentiment Analysis and Opinion Mining
article

Evaluating Pre-Trained Transformer-Based Models for Political Sentiment Analysis on Social Media

María Patricia Tzili Cruz, Salvador Contreras Hernández, Alma Alejandra Luna Gómez, José Martín Espínola Sánchez, Raúl Hernández Medina, Adriana Marlene Pacheco Orozco
article en

Abstract

Sentiment analysis has broad applications in social media networks due to the high volume of user activity on diverse topics such as political debates. Transformer-based neural networks are among the technologies that achieve significant results in text classification. This study evaluates twelve pre-trained transformer-based models through fine-tuning for sentiment classification of Spanish-language political texts from the social media network X. Some of these models were originally created in Spanish, while others are multilingual models that include Spanish. The twelve models were trained to specialize in sentiment classification on political topics, using the same training and testing parameters, in order to compare them under equal conditions during fine-tuning. Good results were obtained with the precision, recall, and F1-score metrics mainly in multilingual models but also in some models originally created in Spanish. The study includes the detailed results of the evaluation in training and testing for the three metrics employed.

ComputationVol. 14(6)
Universidad de Cuautitlán Izcalli (MX), Polytechnic University of the Valley of Mexico (MX)
Quality Education
Openalex Percentile: Top 3%
Sentiment Analysis and Opinion Mining
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.