mediabiasgroup/BABE
Viewer • Updated • 4.12k • 739 • 4
How to use himel7/multilingual-bias-detector with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="himel7/multilingual-bias-detector") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("himel7/multilingual-bias-detector")
model = AutoModelForSequenceClassification.from_pretrained("himel7/multilingual-bias-detector")A model that detects biases in news texts in several languages.
This model is distilled from himel7/bias-detector model on a xlm-roberta (multilingual) model base using Transfer Learning.
On BABE Test Set in English: Accuracy- 0.826 Macro F1- 0.8317
On BABE Test Set in Hindi: Accuracy- 0.781 Macro F1- 0.7912
On BABE Test Set in Bengali: Accuracy- 0.76 Macro F1- 0.7757
You can add further metrics in other languages here...
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.