Views
No views yet
headline, aritcle_text and text_label fields in the News Media Bias Plus Dataset.from transformers import pipeline
classifier = pipeline("text-classification", model="maximuspowers/nmbp-bert-full-articles")
result = classifier("He was a terrible politician.", top_k=2)[
{
'label': 'Likely',
'score': 0.9967995882034302
},
{
'label': 'Unlikely',
'score': 0.003200419945642352
}
]