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