abullard1/germeval-2025-harmful-content-detection-training-dataset
Viewer • Updated • 22.1k • 50
How to use abullard1/germeval2025-dbo-moderngbert-cw_and_focal with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="abullard1/germeval2025-dbo-moderngbert-cw_and_focal") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("abullard1/germeval2025-dbo-moderngbert-cw_and_focal")
model = AutoModelForSequenceClassification.from_pretrained("abullard1/germeval2025-dbo-moderngbert-cw_and_focal")
abullardUR@GermEval Shared Task 2025 Submission
This model is a fine-tuned version of LSX-UniWue/ModernGBERT_134M, specifically designed for Attacks on Democratic Basic Order (DBO) Detection in German social media content. It was developed as part of the GermEval 2025 Shared Task on Harmful Content Detection.
Nothing (84.2%): No attack on democratic orderCriticism (10.8%): Legitimate criticismAgitation (4.2%): Harmful agitationSubversive (0.8%): Most severe attacks on democratic principlesfrom transformers import AutoProcessor, AutoModelForSequenceClassification
# Load model and processor
model_id = "abullard1/germeval2025-dbo-moderngbert-cw_and_focal"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForSequenceClassification.from_pretrained(model_id, trust_remote_code=True).eval()
# Run inference
text = "Die aktuelle Regierung sollte ihre Politik überdenken."
inputs = processor(text, return_tensors="pt", truncation=True)
probs = model(**inputs).logits.softmax(-1).detach().cpu().numpy()
print(f"Predictions: {probs}")
@inproceedings{bullard2025germeval,
title = {abullardUR@GermEval Shared Task 2025: Fine-tuning ModernGBERT on Highly Imbalanced German Social Media for Harmful Content Detection},
author = {Bullard, Samuel},
year = {2025},
booktitle = {Proceedings of KONVENS 2025 Workshops}
}
This model inherits the Research-only RAIL-M license from ModernGBERT. See license details.
Base model
LSX-UniWue/ModernGBERT_134M