You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Our models are intended for academic use only. If you are not affiliated with an academic institution, please provide a rationale for using our models. Please allow us a few business days to manually review subscriptions.

Log in or Sign Up to review the conditions and access this model content.

xlm-roberta-large-english-execspeech-cap-v5

Model description

An xlm-roberta-large model fine-tuned on english training data containing executive speeches labeled with major topic codes from the Comparative Agendas Project.

We follow the master codebook of the Comparative Agendas Project, and all of our models use the same major topic codes.

How to use the model

from transformers import AutoTokenizer, pipeline

tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-large")
pipe = pipeline(
    model="poltextlab/finetune-agent-prod",
    task="text-classification",
    tokenizer=tokenizer,
    use_fast=False,
    token="<your_hf_read_only_token>"
)

text = "<text_to_classify>"
pipe(text)

Classification Report

Overall Performance:

  • Accuracy: 76%
  • Macro Avg: Precision: 0.67, Recall: 0.64, F1-score: 0.65
  • Weighted Avg: Precision: 0.75, Recall: 0.76, F1-score: 0.75

Per-Class Metrics:

Label Precision Recall F1-score Support
(1) Macroeconomics 0.75 0.72 0.74 1701
(2) Civil Rights 0.66 0.53 0.59 286
(3) Health 0.82 0.73 0.77 657
(4) Agriculture 0.76 0.73 0.75 207
(5) Labor 0.61 0.53 0.56 352
(6) Education 0.81 0.84 0.82 746
(7) Environment 0.71 0.64 0.67 188
(8) Energy 0.8 0.81 0.8 306
(9) Immigration 0.69 0.71 0.7 117
(10) Transportation 0.72 0.63 0.67 186
(12) Law and Crime 0.73 0.71 0.72 582
(13) Social Welfare 0.64 0.64 0.64 407
(14) Housing 0.6 0.61 0.6 201
(15) Banking, Finance, and Domestic Commerce 0.79 0.6 0.68 346
(16) Defense 0.69 0.67 0.68 1033
(17) Technology 0.62 0.65 0.63 163
(18) Foreign Trade 0.64 0.59 0.62 301
(19) International Affairs 0.7 0.72 0.71 1643
(20) Government Operations 0.64 0.57 0.6 761
(21) Public Lands 0.56 0.54 0.55 261
(23) Culture 0 0 0 10
(999) No Policy Content 0.82 0.88 0.85 6453

Inference platform

This model is used by the CAP Babel Machine, an open-source and free natural language processing tool, designed to simplify and speed up projects for comparative research.

Cooperation

Model performance can be significantly improved by extending our training sets. We appreciate every submission of CAP-coded corpora (of any domain and language) at poltextlab{at}poltextlab{dot}com or by using the CAP Babel Machine.

Debugging and issues

This architecture uses the sentencepiece tokenizer. In order to run the model before transformers==4.27 you need to install it manually.

Downloads last month
679
Safetensors
Model size
0.6B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for poltextlab/xlm-roberta-large-english-execspeech-cap-v5

Finetuned
(841)
this model