Downloads · 30 days
40
1% of all-time downloads
SinclairSchneider/german_politic_DeBERTa-v2-base
german_politic_DeBERTa-v2-base is a text classification model from SinclairSchneider. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This classifier tells whether a German text is a political text or not. It is based on the model ikim-uk-essen/geberta-base and trained on the dataset SinclairSchneider/trainsetpoliticaltextyesnogerman. The train scri…
Downloads · 30 days
40
1% of all-time downloads
All-time downloads
3.1K
Public
Parameters
139M
2.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin557 MB · 50%
From the Hugging Face model README
This classifier tells whether a German text is a political text or not. It is based on the model ikim-uk-essen/geberta-base and trained on the dataset SinclairSchneider/trainset_political_text_yes_no_german. The train script can be found under this link The model achieved an F1 score of 0.99 on the testset.
from transformers import pipeline
political_classifier = pipeline("text-classification", model="SinclairSchneider/german_politic_DeBERTa-v2-base")
political_classifier("Trump und Putin einigen sich auf begrenzte Waffenruhe")
[{'label': 'politic', 'score': 0.9999680519104004}]
political_classifier("Franck Ribéry und Arjen Robben feiern beim \"Beckenbauer Cup\" ihr Comeback beim FC Bayern. Sie präsentieren sich wie zu besten Zeiten und wecken eine große Sehnsucht beim Rekordmeister.")
[{'label': 'other', 'score': 0.9969837069511414}]