Downloads · 30 days
10
0% of all-time downloads
Social-Media-Fairness/Classifier-Bias-SG
Classifier-Bias-SG is a text classification model from Social-Media-Fairness. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as openrail.
Classifier-Bias-SG is a proof of concept model designed to classify texts based on their bias levels. The model categorizes texts into 2 classes: "Biased", and "Non-Biased".
Downloads · 30 days
10
0% of all-time downloads
All-time downloads
2.9K
Public
Repo size
1.1 GB
Likes
2
Public
Click a slice to open those files.
.bin268 MB · 100%
From the Hugging Face model README
Classifier-Bias-SG is a proof of concept model designed to classify texts based on their bias levels. The model categorizes texts into 2 classes: "Biased", and "Non-Biased".
The model is built upon the distilbert-base-uncased architecture and has been fine-tuned on a custom dataset for the specific task of bias detection.
The model was trained on a BABE dataset containing news articles from various sources, annotated with one of the 2 bias levels. The dataset contains:
The model was trained using the Adam optimizer for 15 epochs.
On our validation set, the model achieved:
To use this model for text classification, use the following code:
from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Social-Media-Fairness/Classifier-Bias-SG")
model = AutoModelForSequenceClassification.from_pretrained("Social-Media-Fairness/Classifier-Bias-SG")
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = classifier("Women are bad driver.")
print(result)
Developed by Shardul Ghuge