Views
No views yet
SallySims/equibert-microaggression| ID | Label | Example |
|---|---|---|
| 0 | none | No microaggression detected |
| 1 | microinsult | "You're surprisingly articulate" |
| 2 | microinvalidation | "I don't see colour" |
| 3 | microassault | Deliberate exclusionary behaviour |
| 4 | environmental | Absence of diverse representation |
| 5 | behavioural | Non-verbal exclusion |
| 6 | second_generation | Systemic/institutional microaggression |
1from transformers import AutoTokenizer
2
3tokenizer = AutoTokenizer.from_pretrained("SallySims/equibert-microaggression")
4text = "You are surprisingly articulate for someone from your background."
5inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=128)
6# predicted_class = model(**inputs).logits.argmax(-1)CLS → Dropout(0.1) → Linear(hidden, hidden//2) → GELU → Linear(hidden//2, 7)
↓
CrossEntropyLoss (single-label)Input Text
│
├──▶ RoBERTa-base encoder ──▶ Linear projection
│ │
└──▶ DeBERTa-v3-base encoder ──▶ Linear projection
│
Weighted fusion (learned α)
│
Layer Norm + Dropout
│
Task-specific head (see below)1@misc{equibert2024,
2 author = {SallySims},
3 title = {EquiBERT: A Multi-Task DEI Transformer},
4 year = {2024},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/SallySims}
7}| Model | Task | Primary Metric |
|---|---|---|
| equibert-bias-classifier | Bias Detection | Macro F1 |
| equibert-microaggression | Microaggression Detection | Macro F1 |
| equibert-category-tagger | DEI Category Tagging | Macro F1 |
| equibert-event-exclusion | Event Exclusion Classification | Macro F1 |
| equibert-inclusive-language | Inclusive Language Scoring | Span F1 |
| equibert-review-auditor | Performance Review Auditing | Span F1 |
| equibert-washing-detector | DEI Washing Detection | MAE |
| equibert-framing-scorer | Report Framing Scoring | MAE |
| equibert-awareness-scorer | DEI Awareness Scoring | MAE |
| equibert-similarity | Semantic Similarity | Accuracy |
| equibert-ner | DEI Entity Recognition | Span F1 |
| equibert-relation-extraction | Relation Extraction | Macro F1 |
| equibert-qa | Extractive QA | Span EM |
| equibert-search | Semantic Search | MRR@10 |
| equibert-nli | NLI / Textual Entailment | Macro F1 |
| equibert-generator | DEI Text Generation | ROUGE-L |