Abhishek Singh commited on
Commit
7f7ac5c
·
verified ·
1 Parent(s): 7688a68

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -19
README.md CHANGED
@@ -1,22 +1,45 @@
 
 
 
 
 
 
1
  ---
2
- dataset_info:
3
- features:
4
- - name: text
5
- dtype: string
6
- - name: label
7
- dtype: string
8
- splits:
9
- - name: train
10
- num_bytes: 2902244
11
- num_examples: 20148
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
- [More Information needed](https://github.com/huggingface/datasets/blob/main/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HateXplain: Annotated Dataset for Hate Speech and Offensive Language Explanation
2
+
3
+ ![HateXplain Logo](https://raw.githubusercontent.com/hate-alert/HateXplain/main/img/hatexplain-logo.png)
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
+ }