Datasets:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- text-classification
|
| 4 |
+
language:
|
| 5 |
+
- vi
|
| 6 |
+
---
|
| 7 |
+
## Dataset Card for VITHSD
|
| 8 |
+
|
| 9 |
+
### 1. Dataset Summary
|
| 10 |
+
|
| 11 |
+
**VITHSD** (Vietnamese Targeted Hate Speech Detection) contains **10,000** Vietnamese social‐media comments annotated for hate toward five target categories:
|
| 12 |
+
|
| 13 |
+
* **individual**
|
| 14 |
+
* **groups**
|
| 15 |
+
* **religion/creed**
|
| 16 |
+
* **race/ethnicity**
|
| 17 |
+
* **politics**
|
| 18 |
+
|
| 19 |
+
Each target is labeled on a **3‐point scale** (e.g., 0 = no hate, 1 = offensive, 2 = hateful). In this unified version, all splits are combined into one CSV with an extra `type` column indicating `train` / `dev` / `test`.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
### 2. Supported Tasks and Metrics
|
| 23 |
+
|
| 24 |
+
* **Task**: Multi‐label classification (per‐target hate/offense detection)
|
| 25 |
+
* **Metrics**:
|
| 26 |
+
|
| 27 |
+
* **Accuracy** (per‐target and overall)
|
| 28 |
+
* **Macro F1** (per‐target and overall)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
### 3. Languages
|
| 32 |
+
|
| 33 |
+
* Vietnamese
|
| 34 |
+
|
| 35 |
+
### 4. Dataset Structure
|
| 36 |
+
|
| 37 |
+
| Column | Type | Description |
|
| 38 |
+
| ---------------- | ------ | -------------------------------------------- |
|
| 39 |
+
| `comment` | string | The raw user comment (Vietnamese). |
|
| 40 |
+
| `individual` | int | Hate level toward individuals (0/1/2). |
|
| 41 |
+
| `groups` | int | Hate level toward groups (0/1/2). |
|
| 42 |
+
| `religion/creed` | int | Hate level toward religion/creed (0/1/2). |
|
| 43 |
+
| `race/ethnicity` | int | Hate level toward race/ethnicity (0/1/2). |
|
| 44 |
+
| `politics` | int | Hate level toward political targets (0/1/2). |
|
| 45 |
+
| `type` | string | Split name: `train` / `validation` / `test`. |
|
| 46 |
+
| `dataset` | string | Source indicator (`VITHSD`). |
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
### 5. Data Fields
|
| 50 |
+
|
| 51 |
+
* **comment** (`str`): The social‐media text.
|
| 52 |
+
* **individual**, **groups**, **religion/creed**, **race/ethnicity**, **politics** (`int`): 0 = no hate, 1 = offensive, 2 = hateful.
|
| 53 |
+
* **type** (`str`): Which split the example belongs to.
|
| 54 |
+
* **dataset** (`str`): Always `VITHSD`.
|
| 55 |
+
|
| 56 |
+
### 6. Usage
|
| 57 |
+
|
| 58 |
+
```python
|
| 59 |
+
from datasets import load_dataset
|
| 60 |
+
|
| 61 |
+
ds = load_dataset("visolex/VITHSD")
|
| 62 |
+
|
| 63 |
+
train = ds.filter(lambda ex: ex["type"] == "train")
|
| 64 |
+
val = ds.filter(lambda ex: ex["type"] == "dev")
|
| 65 |
+
test = ds.filter(lambda ex: ex["type"] == "test")
|
| 66 |
+
|
| 67 |
+
# Examine one example
|
| 68 |
+
print(train[0])
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
### 7. Source & Links
|
| 73 |
+
|
| 74 |
+
* **Hugging Face Dataset**
|
| 75 |
+
[`sonlam1102/vithsd`](https://huggingface.co/datasets/sonlam1102/vithsd)
|
| 76 |
+
* **Publication / Preprint**
|
| 77 |
+
Vo et al. (2024), “ViTHSD: exploiting hatred by targets for hate speech detection on Vietnamese social media texts” (arXiv)
|
| 78 |
+
|
| 79 |
+
### 8. Contact Information
|
| 80 |
+
|
| 81 |
+
* **Mr. Son T. Luu**
|
| 82 |
+
* Email: [sonlt@uit.edu.vn](mailto:sonlt@uit.edu.vn)
|
| 83 |
+
* Alternative: [son.lt1103@gmail.com](mailto:son.lt1103@gmail.com)
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
### 9. Licensing and Citation
|
| 87 |
+
|
| 88 |
+
#### License
|
| 89 |
+
|
| 90 |
+
Refer to the original repository’s LICENSE. If unspecified, assume **CC BY 4.0**.
|
| 91 |
+
|
| 92 |
+
#### How to Cite
|
| 93 |
+
|
| 94 |
+
```bibtex
|
| 95 |
+
@article{vo2025vithsd,
|
| 96 |
+
title = {ViTHSD: exploiting hatred by targets for hate speech detection on Vietnamese social media texts},
|
| 97 |
+
author = {Vo, Cuong Nhat and Huynh, Khanh Bao and Luu, Son T and Do, Trong-Hop},
|
| 98 |
+
journal = {Journal of Computational Social Science},
|
| 99 |
+
volume = {8},
|
| 100 |
+
number = {2},
|
| 101 |
+
pages = {30},
|
| 102 |
+
year = {2025},
|
| 103 |
+
publisher = {Springer},
|
| 104 |
+
doi = {10.1007/s42001-024-00348-6}
|
| 105 |
+
}
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
```bibtex
|
| 109 |
+
@misc{sonlam1102_vithsd,
|
| 110 |
+
title = {VITHSD: Targeted Hate Speech Detection on Vietnamese Social Media Texts},
|
| 111 |
+
howpublished = {\url{https://huggingface.co/datasets/sonlam1102/vithsd}},
|
| 112 |
+
year = {2024}
|
| 113 |
+
}
|
| 114 |
+
```
|