Instructions to use chkla/parlbert-topic-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chkla/parlbert-topic-german with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="chkla/parlbert-topic-german")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("chkla/parlbert-topic-german") model = AutoModelForSequenceClassification.from_pretrained("chkla/parlbert-topic-german", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,7 +8,7 @@ widget:
|
|
| 8 |
|
| 9 |
🏷 **Model description**
|
| 10 |
|
| 11 |
-
This model was trained on \~10k manually annotated interpellations (📚 [Breunig/ Schnatterer 2019](https://
|
| 12 |
|
| 13 |
_Note: "Interpellation is a formal request of a parliament to the respective government."([Wikipedia](https://en.wikipedia.org/wiki/Interpellation_(politics)))_
|
| 14 |
|
|
|
|
| 8 |
|
| 9 |
🏷 **Model description**
|
| 10 |
|
| 11 |
+
This model was trained on \~10k manually annotated interpellations (📚 [Breunig/ Schnatterer 2019](https://www.tandfonline.com/doi/abs/10.1080/13572334.2021.2010395)) with topics from the [Comparative Agendas Project](https://www.comparativeagendas.net/datasets_codebooks) to classify text into one of twenty labels (annotation codebook).
|
| 12 |
|
| 13 |
_Note: "Interpellation is a formal request of a parliament to the respective government."([Wikipedia](https://en.wikipedia.org/wiki/Interpellation_(politics)))_
|
| 14 |
|