chkla / parlbert-topic-german

huggingface.co
Total runs: 49
24-hour runs: 0
7-day runs: -33
30-day runs: -184
Model's Last Updated: April 09 2024
text-classification

Introduction of parlbert-topic-german

Model Details of parlbert-topic-german

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 )

🗃 Dataset

party speeches tokens
CDU/CSU 7,635 4,862,654
SPD 5,321 3,158,315
AfD 3,465 1,844,707
FDP 3,067 1,593,108
The Greens 2,866 1,522,305
The Left 2,671 1,394,089
cross-bencher 200 86,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

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%):

Label F1 support
International 80.0 1,126
Defense 85.0 1,099
Government 71.3 989
Civil Rights 76.5 978
Environment 76.6 845
Transportation 86.0 800
Law & Crime 67.1 492
Energy 78.6 424
Health 78.2 418
Domestic Com. 64.4 382
Immigration 81.0 376
Labor 69.1 344
Macroeconom. 62.8 339
Agriculture 76.3 292
Social Welfare 49.2 253
Technology 63.0 252
Education 71.6 183
Housing 79.6 178
Foreign Trade 61.5 139
Culture 54.6 69
Public Lands 45.4 55

⚠️ 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

Runs of chkla parlbert-topic-german on huggingface.co

49
Total runs
0
24-hour runs
3
3-day runs
-33
7-day runs
-184
30-day runs

More Information About parlbert-topic-german huggingface.co Model

parlbert-topic-german huggingface.co

parlbert-topic-german huggingface.co is an AI model on huggingface.co that provides parlbert-topic-german's model effect (), which can be used instantly with this chkla parlbert-topic-german model. huggingface.co supports a free trial of the parlbert-topic-german model, and also provides paid use of the parlbert-topic-german. Support call parlbert-topic-german model through api, including Node.js, Python, http.

parlbert-topic-german huggingface.co Url

https://huggingface.co/chkla/parlbert-topic-german

chkla parlbert-topic-german online free

parlbert-topic-german huggingface.co is an online trial and call api platform, which integrates parlbert-topic-german's modeling effects, including api services, and provides a free online trial of parlbert-topic-german, you can try parlbert-topic-german online for free by clicking the link below.

chkla parlbert-topic-german online free url in huggingface.co:

https://huggingface.co/chkla/parlbert-topic-german

parlbert-topic-german install

parlbert-topic-german is an open source model from GitHub that offers a free installation service, and any user can find parlbert-topic-german on GitHub to install. At the same time, huggingface.co provides the effect of parlbert-topic-german install, users can directly use parlbert-topic-german installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

parlbert-topic-german install url in huggingface.co:

https://huggingface.co/chkla/parlbert-topic-german

Url of parlbert-topic-german

parlbert-topic-german huggingface.co Url

Provider of parlbert-topic-german huggingface.co

chkla
ORGANIZATIONS

Other API from chkla