File size: 1,550 Bytes
172c327 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
---
language:
- en
- hi
license: apache-2.0
tags:
- hate-speech-detection
- reddit
- xlm-roberta
- hindi
- english
datasets:
- HASOC2019
metrics:
- accuracy
- f1
model-index:
- name: reddit-hate-speech-detector
results:
- task:
type: text-classification
metrics:
- type: accuracy
value: 0.8293
- type: f1
value: 0.8278
---
# Reddit Hate Speech Detector (Hindi + English)
This model detects hate speech in Reddit comments for both Hindi and English languages.
## Model Description
- **Base Model:** XLM-RoBERTa
- **Languages:** Hindi, English
- **Task:** Multi-task classification (hate speech detection + type + target)
- **Accuracy:** 82.93%
- **F1 Score:** 0.8278
## Intended Use
This model is designed for:
- Content moderation on Reddit
- Automated hate speech detection
- Research purposes
⚠️ **Important:** This model should assist human moderators, not replace them.
## Usage
```python
import torch
from transformers import XLMRobertaTokenizer
# Load tokenizer
tokenizer = XLMRobertaTokenizer.from_pretrained('xlm-roberta-base')
# Your model loading code here
# (See inference script)
```
## Training Data
- HASOC 2019 Hindi Dataset
- HASOC 2019 English Dataset
- Combined training with class balancing
## Limitations
- May have biases present in training data
- Requires context for accurate detection
- Cultural nuances may not be fully captured
## Ethical Considerations
- Should be used transparently
- Allow user appeals
- Regular monitoring for fairness
- Consider cultural context
|