This is a fine-tuned XLM-RoBERTa trained using XLM-RoBERTa large-sized pre-trained on 2.5TB of filtered CommonCrawl data that comprises 100 languages as a base model. The dataset for training this model consists of 6,169 Acts of the UK Parliament between 1911 and 2014, annotated using the major policy agenda topics from the
Comparative Agendas Project.
The data was split in a proportion of 70/15/15 for training, validation and testing. Data imbalance was corrected by stratifying major agenda topics during the split process.
1## Pipeline as a high-level helper
2from transformers import pipeline
3agendas_classifier = pipeline("text-classification", model="bgonzalezbustamante/ft-XLM-RoBERTa-policy-agenda-English")
4
5## Act example
6act_example = agendas_classifier("Statutory Gas Companies (Electricity Supply Powers) Act, 1925 c. 44. An Act to facilitate the supply of electricity by statutory gas companies")
7
8## Print example
9print(act_example)
This model includes legislative debates policy classification in English, including machine translations when the BLEU scores are acceptable. The transfer of the domain must be implemented carefully.
González-Bustamante, B. (2025). ft-XLM-RoBERTa-policy-agenda-English (Revision 6ff84a0). Hugging Face.
https://doi.org/10.57967/hf/6863.