Views
No views yet

False (no violence), True (violence-related content detected)1from transformers import AutoProcessor, AutoModelForSequenceClassification
2
3# Load model and processor
4model_id = "abullard1/germeval2025-vio-moderngbert-cw"
5processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
6model = AutoModelForSequenceClassification.from_pretrained(model_id, trust_remote_code=True).eval()
7
8# Run inference
9text = "Diese Situation macht mich wütend!"
10inputs = processor(text, return_tensors="pt", truncation=True)
11probs = model(**inputs).logits.softmax(-1).detach().cpu().numpy()
12print(f"Predictions: {probs}")1@inproceedings{bullard2025germeval,
2 title = {abullardUR@GermEval Shared Task 2025: Fine-tuning ModernGBERT on Highly Imbalanced German Social Media for Harmful Content Detection},
3 author = {Bullard, Samuel},
4 year = {2025},
5 booktitle = {Proceedings of KONVENS 2025 Workshops}
6}