A Transformer Model for Manifesto Classification Using Cross-Context Training: An Ecuadorian Case Study
- 24 July 2024
- journal article
- Published by SAGE Publications in Social Science Computer Review
- Vol. 43 (3) , 578-603
Abstract
Content analysis of political manifestos is necessary to understand the policies and proposed actions of a party. However, manually labeling political texts is time-consuming and labor-intensive. Transformer networks have become essential tools for automating this task. Nevertheless, these models require extensive datasets to achieve good performance. This can be a limitation in manifesto classification, where the availability of publicly labeled datasets can be scarce. To address this challenge, in this work, we developed a Transformer network for the classification of manifestos using a cross-domain training strategy. Using the database of the Comparative Manifesto Project, we implemented a fractional factorial experimental design to determine which Spanish-written manifestos form the best training set for Ecuadorian manifesto labeling. Furthermore, we statistically analyzed which Transformer architecture and preprocessing operations improve the model accuracy. The results indicate that creating a training set with manifestos from Spain and Uruguay, along with implementing stemming and lemmatization preprocessing operations, produces the highest classification accuracy. In addition, we found that the DistilBERT and RoBERTa transformer networks perform statistically similarly and consistently well in manifesto classification. Using the cross-context training strategy, DistilBERT and RoBERTa achieve 60.05% and 57.64% accuracy, respectively, in the classification of the Ecuadorian manifesto. Finally, we investigated the effect of the composition of the training set on performance. The experiments demonstrate that training DistilBERT solely with Ecuadorian manifestos achieves the highest accuracy and F1-score. Furthermore, in the absence of the Ecuadorian dataset, competitive performance is achieved by training the model with datasets from Spain and Uruguay.Keywords
Funding Information
- Universidad San Francisco de Quito, Colegio de Ciencias e Ingenierias (POLIGRANT No. 201000725)
This publication has 24 references indexed in Scilit:
- Performance Analysis of Federated Learning Algorithms for Multilingual Protest News Detection Using Pre-Trained DistilBERT and BERTIEEE Access, 2023
- Natural language processing: state of the art, current trends and challengesMultimedia Tools and Applications, 2022
- Cross-Domain Topic Classification for Political TextsPolitical Analysis, 2021
- Towards Automatic Comparison of Online Campaign Versus Electoral Manifestos2021
- A Study on the Impact of Pre-Processing Techniques in Spanish and English Text Classification over Short and Large Text Documents2018
- Text Preprocessing For Unsupervised Learning: Why It Matters, When It Misleads, And What To Do About ItPolitical Analysis, 2018
- Proportional Classification Revisited: Automatic Content Analysis of Political Manifestos Using Active LearningSocial Science Computer Review, 2018
- Deep learning for segmentation of brain tumors: Impact of cross‐institutional training and testingMedical Physics, 2018
- The Impact of applying Different Preprocessing Steps on Review Spam DetectionProcedia Computer Science, 2017
- A comparison between semi-supervised and supervised text mining techniques on detecting irony in greek political tweetsEngineering Applications of Artificial Intelligence, 2016