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
File size: 1,374 Bytes
8fa56e8 8429098 8fa56e8 8f97a7d 8fa56e8 8429098 8fa56e8 5bafe5f 8fa56e8 8429098 8fa56e8 8f97a7d 8fa56e8 8f97a7d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | ---
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
<!-- Provide a longer summary of what this model is. -->
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]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]
- **Paper [optional]:** [More Information Needed]
- **Demo [optional]:** [More Information Needed] |