CoolFace
Modelpublic

chkla/parlbert-topic-german

sourceHugging Faceupdated 2y agoView on Hugging Face
15likes229downloads
Model Card

Welcome to ParlBERT-Topic-German!

🏷 Model description

This model was trained on \~10k manually annotated interpellations (πŸ“š Breunig/ Schnatterer 2019) with topics from the Comparative Agendas Project to classify text into one of twenty labels (annotation codebook).

Note: "Interpellation is a formal request of a parliament to the respective government."([Wikipedia](https://en.wikipedia.org/wiki/Interpellation(politics)))_

πŸ—ƒ Dataset

partyspeechestokens
CDU/CSU7,6354,862,654
SPD5,3213,158,315
AfD3,4651,844,707
FDP3,0671,593,108
The Greens2,8661,522,305
The Left2,6711,394,089
cross-bencher20086,170

πŸƒπŸΌβ€β™‚οΈModel training

ParlBERT-Topic-German was fine-tuned on a domain adapted model (GermanBERT fine-tuned on DeuParl) for topic modeling with an interpellations dataset (πŸ“š Breunig/ Schnatterer 2019) from the Comparative Agendas Project.

πŸ€– Use

python
from transformers import pipeline

pipeline_classification_topics = pipeline("text-classification", model="chkla/parlbert-topic-german", return_all_scores=False)
text = "Das Sachgebiet Investive Ausgaben des Bundes Bundesfinanzminister Apel hat gemÀß BMF Finanznachrichten vom 1. Januar erklÀrt, die Investitionsquote des Bundes sei in den letzten zehn Jahren nahezu konstant geblieben."
pipeline_classification_topics(text) # Macroeconomics

πŸ“Š Evaluation

The model was evaluated on an evaluation set (20%):

LabelF1support
International80.01,126
Defense85.01,099
Government71.3989
Civil Rights76.5978
Environment76.6845
Transportation86.0800
Law & Crime67.1492
Energy78.6424
Health78.2418
Domestic Com.64.4382
Immigration81.0376
Labor69.1344
Macroeconom.62.8339
Agriculture76.3292
Social Welfare49.2253
Technology63.0252
Education71.6183
Housing79.6178
Foreign Trade61.5139
Culture54.669
Public Lands45.455

⚠️ Limitations

Models are often highly topic dependent. Therefore, the model may perform less well on different topics and text types not included in the training set.

πŸ‘₯ Cite

@article{klamm2022frameast,
  title={FrameASt: A Framework for Second-level Agenda Setting in Parliamentary Debates through the Lense of Comparative Agenda Topics},
  author={Klamm, Christopher and Rehbein, Ines and Ponzetto, Simone},
  journal={ParlaCLARIN III at LREC2022},
  year={2022}
}

🐦 Twitter: @chklamm