Abhishek Singh commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
download_size: 1767746
|
| 13 |
-
dataset_size: 2902244
|
| 14 |
-
configs:
|
| 15 |
-
- config_name: default
|
| 16 |
-
data_files:
|
| 17 |
-
- split: train
|
| 18 |
-
path: data/train-*
|
| 19 |
---
|
| 20 |
-
# Dataset Card for "HateXplain"
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HateXplain: Annotated Dataset for Hate Speech and Offensive Language Explanation
|
| 2 |
+
|
| 3 |
+

|
| 4 |
+
|
| 5 |
+
**HateXplain** is a benchmark dataset for hate speech and offensive language detection, uniquely annotated with *explanations* and *rationales*. It is designed to support the development of interpretable models in online content moderation.
|
| 6 |
+
|
| 7 |
---
|
| 8 |
+
|
| 9 |
+
## 📚 Dataset Summary
|
| 10 |
+
|
| 11 |
+
- **Languages**: English
|
| 12 |
+
- **Samples**: ~20,000 social media posts
|
| 13 |
+
- **Annotations**:
|
| 14 |
+
- `label`: `normal`, `offensive`, or `hatespeech`
|
| 15 |
+
- `annotators`: Multiple annotators per post with consensus labeling
|
| 16 |
+
- `rationales`: Token-level binary rationales indicating why the label was chosen
|
| 17 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
|
|
|
| 19 |
|
| 20 |
+
## 📁 Dataset Structure
|
| 21 |
+
|
| 22 |
+
| Column | Description |
|
| 23 |
+
|---------------|---------------------------------------------------------------------------|
|
| 24 |
+
| `post_id` | Unique ID for each post (e.g., Twitter ID) |
|
| 25 |
+
| `post_tokens` | List of tokenized words from the post |
|
| 26 |
+
| `annotators` | List of dictionaries with label, annotator_id, and rationale |
|
| 27 |
+
| `rationales` | List of lists indicating which tokens are part of the explanation |
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## 🔍 Example Entry
|
| 32 |
+
|
| 33 |
+
```json
|
| 34 |
+
{
|
| 35 |
+
"post_id": "1179055004553900032_twitter",
|
| 36 |
+
"post_tokens": ["i", "dont", "think", "im", "getting", "my", "baby", "them", "white", "9", "s", "for", "school"],
|
| 37 |
+
"annotators": [
|
| 38 |
+
{
|
| 39 |
+
"label": "normal",
|
| 40 |
+
"annotator_id": 1,
|
| 41 |
+
"rationale": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
| 42 |
+
}
|
| 43 |
+
],
|
| 44 |
+
"rationales": []
|
| 45 |
+
}
|