Downloads · 30 days
38
17% of all-time downloads
jokugeorgin/CI_MA_Detect
CI_MA_Detect is a text classification model from jokugeorgin. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
This model detects microaggressions in text using a fine-tuned DeBERTa architecture.
Downloads · 30 days
38
17% of all-time downloads
All-time downloads
225
Public
Parameters
139M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.h5557 MB · 33%
From the Hugging Face model README
This model detects microaggressions in text using a fine-tuned DeBERTa architecture.
from transformers import DebertaTokenizer, DebertaForSequenceClassification
import torch
tokenizer = DebertaTokenizer.from_pretrained("jokugeorgin/CI_MA_Detect")
model = DebertaForSequenceClassification.from_pretrained("jokugeorgin/CI_MA_Detect")
text = "You speak good English for someone from there."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
outputs = model(**inputs)
prediction = torch.argmax(outputs.logits, dim=1)
curl https://api-inference.huggingface.co/models/jokugeorgin/CI_MA_Detect \
-H "Authorization: Bearer YOUR_HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{"inputs": "You speak good English for someone from there."}'
Custom dataset of microaggression examples and neutral text.