Sentence-Level Stereotype Classifier

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.

Model Architecture

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.

Classes

The model identifies nine classes, including:

  1. unrelated: The token does not indicate any stereotype.
  2. stereotype_gender: The token indicates a gender stereotype.
  3. anti-stereotype_gender: The token indicates an anti-gender stereotype.
  4. stereotype_race: The token indicates a racial stereotype.
  5. anti-stereotype_race: The token indicates an anti-racial stereotype.
  6. stereotype_profession: The token indicates a professional stereotype.
  7. anti-stereotype_profession: The token indicates an anti-professional stereotype.
  8. stereotype_religion: The token indicates a religious stereotype.
  9. anti-stereotype_religion: The token indicates an anti-religious stereotype.

Usage

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)
Downloads last month
4,713
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Model tree for wu981526092/Sentence-Level-Stereotype-Detector

Finetunes
6 models

Datasets used to train wu981526092/Sentence-Level-Stereotype-Detector

Space using wu981526092/Sentence-Level-Stereotype-Detector 1