Downloads · 30 days
311
1% of all-time downloads
newsmediabias/UnBIAS-classifier
UnBIAS-classifier is a text classification model from newsmediabias. 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.
UnBIAS is a state-of-the-art model designed to classify texts based on their bias levels. The model categorizes texts into three classes: "Highly Biased", "Slightly Biased", and "Neutral".
Downloads · 30 days
311
1% of all-time downloads
All-time downloads
32.9K
Public
Repo size
876 MB
Likes
1
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
UnBIAS is a state-of-the-art model designed to classify texts based on their bias levels. The model categorizes texts into three classes: "Highly Biased", "Slightly Biased", and "Neutral".
The model is built upon the bert-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 dataset containing news articles from various sources, annotated with one of the three bias levels. The dataset contains:
The model was trained using the Adam optimizer for 10 epochs.
On our validation set, the model achieved:
(Replace placeholders with actual performance metrics.)
To use this model for text classification, use the following code:
from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("newsmediabias/UnBIAS-classifier")
model = AutoModelForSequenceClassification.from_pretrained("newsmediabias/UnBIAS-classifier")
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = classifier("Women are bad driver.")
print(result)
Developed by Shaina Raza