Downloads · 30 days
4
0% of all-time downloads
newsmediabias/UnBIAS-classification-bert
UnBIAS-classification-bert 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.
This is a BERT based model designed to detect bias in text data enabling users to identify whether a given text is biased or non-biased.
Downloads · 30 days
4
0% of all-time downloads
All-time downloads
4.1K
Public
Repo size
876 MB
Likes
2
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
This is a BERT based model designed to detect bias in text data enabling users to identify whether a given text is biased or non-biased.
The model's performance on unseen data is:
To use the model, you can utilize the transformers library from Hugging Face:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("newsmediabias/UnBIAS-classification-bert")
model = AutoModelForSequenceClassification.from_pretrained("newsmediabias/UnBIAS-classification-bert")
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer , device=0 if device.type == "cuda" else -1)
classifier("Anyone can excel at coding.")
