tum-nlp/neural-news-benchmark
Viewer • Updated • 27.2k • 404 • 4
How to use tum-nlp/neural-news-discriminator-RoBERTa-hu with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tum-nlp/neural-news-discriminator-RoBERTa-hu") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tum-nlp/neural-news-discriminator-RoBERTa-hu")
model = AutoModelForSequenceClassification.from_pretrained("tum-nlp/neural-news-discriminator-RoBERTa-hu", device_map="auto")Trained on the Hungarian news data from: https://huggingface.co/datasets/tum-nlp/neural_news
https://huggingface.co/FacebookAI/xlm-roberta-base
See below for accuracy metrics:

@article{uyuk2024crafting,
title={Crafting Tomorrow's Headlines: Neural News Generation and Detection in English, Turkish, Hungarian, and Persian},
author={{\"U}y{\"u}k, Cem and Rov{\'o}, Danica and Kolli, Shaghayegh and Varol, Rabia and Groh, Georg and Dementieva, Daryna},
journal={arXiv preprint arXiv:2408.10724},
year={2024}
}