Downloads · 30 days
6.7K
4% of all-time downloads
wu981526092/Sentence-Level-Stereotype-Detector
Sentence-Level-Stereotype-Detector is a text classification model from wu981526092. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
The Sentence-Level Stereotype Classifier is a transformer-based model developed to detect and classify different types of stereotypes present in the text at the sentence level. It is designed to recognize stereotypica…
Downloads · 30 days
6.7K
4% of all-time downloads
All-time downloads
170K
Public
Repo size
1.1 GB
Likes
6
Public
Click a slice to open those files.
.pt536 MB · 67%
From the Hugging Face model README
The Sentence-Level Stereotype Classifier is a transformer-based model developed to detect and classify different types of stereotypes present in the text at the sentence level. It is designed to recognize stereotypical and anti-stereotypical stereotypes towards gender, race, profession, and religion. The model can help in developing applications aimed at mitigating Stereotypical language use and promoting fairness and inclusivity in natural language processing tasks.
The model is built using the pre-trained Distilbert model. It is fine-tuned on MGS Dataset for the task of sentence-level stereotype classification.
The model identifies nine classes, including:
The model can be used as a part of the Hugging Face's pipeline for Text Classification.
from transformers import pipeline
nlp = pipeline("text-classification", model="wu981526092/Sentence-Level-Stereotype-Detector", tokenizer="wu981526092/Sentence-Level-Stereotype-Detector")
result = nlp("Text containing potential stereotype...")
print(result)