UnBIAS Classification Model Card

Model Description

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".

Model Architecture

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.

Dataset

The model was trained on a dataset containing news articles from various sources, annotated with one of the three bias levels. The dataset contains:

Training Procedure

The model was trained using the Adam optimizer for 10 epochs.

Performance

On our validation set, the model achieved:

(Replace placeholders with actual performance metrics.)

How to Use

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