Downloads · 30 days
17
17% of all-time downloads
maximuspowers/nmbp-bert-headlines
nmbp-bert-headlines is a text classification model from maximuspowers. Use it when you need a label for a piece of text. It is set up for transformers.
Classifies sentences as "Likely" or "Unlikely" biased/disinformation (max token len 128).
Downloads · 30 days
17
17% of all-time downloads
All-time downloads
101
Public
Parameters
109M
438 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
Classifies sentences as "Likely" or "Unlikely" biased/disinformation (max token len 128).
Fine-tuned BERT (bert-base-uncased) on the headline and text_label fields in the News Media Bias Plus Dataset.
This model was trained without weighted sampling, and the dataset contains 81.9% 'Likely' and 18.1% 'Unlikely' examples. The same model trained with weighted sampling preformed better when evaluated by gpt-4o-mini as a judge and is available here.
Evaluated on a 0.1 random sample of the NMB+ dataset, unseen during training
from transformers import pipeline
classifier = pipeline("text-classification", model="maximuspowers/nmbp-bert-headlines")
result = classifier("He was a terrible politician.", top_k=2)
[
{
'label': 'Likely',
'score': 0.9967995882034302
},
{
'label': 'Unlikely',
'score': 0.003200419945642352
}
]