How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="nicoberk/GermanNewsCrime")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("nicoberk/GermanNewsCrime")
model = AutoModelForSequenceClassification.from_pretrained("nicoberk/GermanNewsCrime", device_map="auto")
Quick Links

BERT model to detect crime coverage in German migration news. Might or might not work to detect crime coverage in general news.

Training procedure and performance described in Berk, Nicolai. 2024. The Impact of Media Framing in Complex Information Environments. Political Communication. Please cite the paper when using the classifier.

Downloads last month
17
Safetensors
Model size
67.4M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for nicoberk/GermanNewsCrime

Finetuned
(1013)
this model