File size: 1,583 Bytes
f723408
 
 
8ed0d96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c6b02a8
8ed0d96
 
 
 
 
02dc2f8
 
 
8ed0d96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c6b02a8
 
 
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
---
license: openrail
---
# 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:
- **Highly Biased**: 4000 articles
- **Slightly Biased**: 4000 articles
- **Neutral**: 4000 articles

## Training Procedure

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

## Performance

On our validation set, the model achieved:
- **Accuracy**: 95%
- **F1 Score (Highly Biased)**: 89%
- **F1 Score (Slightly Biased)**: 85%
- **F1 Score (Neutral)**: 82%

(Replace placeholders with actual performance metrics.)

## How to Use

To use this model for text classification, use the following code:

```python
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