Views
No views yet
roberta-base encoder with a 2-layer classification head trained on the Anno-lexical dataset (48,330 sentences; 70/15/15 splits). Labels are binary: 0 = neutral/non-lexical-bias, 1 = lexical-bias.1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4m = "mediabiasgroup/roberta-anno-lexical-ft"
5tok = AutoTokenizer.from_pretrained(m)
6model = AutoModelForSequenceClassification.from_pretrained(m)
7
8text = "Democrats shamelessly rammed the bill through Congress."
9inputs = tok(text, return_tensors="pt")
10probs = model(**inputs).logits.softmax(-1).tolist()[0]
11print({"neutral": probs[0], "lexical_bias": probs[1]})@inproceedings{horych-etal-2025-promises,
title = "The Promises and Pitfalls of {LLM} Annotations in Dataset Labeling: a Case Study on Media Bias Detection",
author = "Horych, Tom{\'a}{\v{s}} and
Mandl, Christoph and
Ruas, Terry and
Greiner-Petter, Andre and
Gipp, Bela and
Aizawa, Akiko and
Spinde, Timo",
editor = "Chiruzzo, Luis and
Ritter, Alan and
Wang, Lu",
booktitle = "Findings of the Association for Computational Linguistics: NAACL 2025",
month = apr,
year = "2025",
address = "Albuquerque, New Mexico",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.findings-naacl.75/",
doi = "10.18653/v1/2025.findings-naacl.75",
pages = "1370--1386",
ISBN = "979-8-89176-195-7"
}