Text Classification
Transformers
Safetensors
xlm-roberta
news
bias
nlp
mediabias
multilingual
text-embeddings-inference
Instructions to use himel7/multilingual-bias-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("himel7/multilingual-bias-detector") model = AutoModelForSequenceClassification.from_pretrained("himel7/multilingual-bias-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from himel7/multilingual-bias-detector: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/himel7/multilingual-bias-detector/resolve/main/README.md
- Command line
-
hf download hf://himel7/multilingual-bias-detector/README.md
-
curl -L -o README.md https://huggingface.co/himel7/multilingual-bias-detector/resolve/main/README.md
1.37 kB
metadata
library_name: transformers
tags:
- news
- bias
- nlp
- mediabias
- multilingual
license: apache-2.0
datasets:
- mediabiasgroup/BABE
language:
- en
- bn
- hi
- de
- it
- fr
- da
- es
- ar
- ur
- zh
- pt
- nl
- ru
- ja
metrics:
- f1
base_model:
- himel7/bias-detector
Model Card for 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.
Model Details
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...
Model Description
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: Himel Ghosh
- Language(s) (NLP): English, Italian, German, etc.
- Finetuned from model xlm-roberta: Distilled from himel7/bias-detector
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]