加载中…
加载中…
This model is a fine-tuned version of roberta-base trained on a unified dataset combining multiple hate speech and racial bias benchmark datasets.
NEUTRAL (0): Safe, non-offensive, or general language.FLAGGED (1): Hate speech, racial bias, or offensive targeted language.from transformers import pipeline
classifier = pipeline("text-classification", model="mohawwad93/roberta-racial-language-detector")
results = classifier("Your input text here...")
print(results)