Downloads · 30 days
6
1% of all-time downloads
wu981526092/Token-Level-Stereotype-Detector
Token-Level-Stereotype-Detector is a token classification model from wu981526092. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
The Token-Level Stereotype Classifier is a transformer-based model developed to detect and classify different types of stereotypes present in the text at the token level. It is designed to recognize stereotypical and…
Downloads · 30 days
6
1% of all-time downloads
All-time downloads
653
Public
Repo size
2.5 GB
Likes
2
Public
Click a slice to open those files.
.pt531 MB · 67%
From the Hugging Face model README
The Token-Level Stereotype Classifier is a transformer-based model developed to detect and classify different types of stereotypes present in the text at the token 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 pretrained Distilbert model. It is fine-tuned on MGS Dataset for the task of token-level classification.
The model identifies nine classes, including:
The model can be used as a part of the Hugging Face's pipeline for Named Entity Recognition (NER).
from transformers import pipeline
nlp = pipeline("ner", model="wu981526092/Token-Level-Stereotype-Detector", tokenizer="wu981526092/Token-Level-Stereotype-Detector")
result = nlp("Text containing potential stereotype...")
print(result)