AnnyNguyen commited on
Commit
ce8490f
·
verified ·
1 Parent(s): 4dc5066

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +154 -0
README.md ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - text-classification
4
+ language:
5
+ - vi
6
+ ---
7
+ ## Dataset Card for ViSoLex‑HSD
8
+
9
+ ### 1. Dataset Summary
10
+
11
+ **ViSoLex‑HSD** is a unified Vietnamese hate‐speech detection corpus, combining three benchmark datasets:
12
+
13
+ * **ViHSD** (Son et al., 2021): 33K comments labeled **CLEAN**, **OFFENSIVE**, or **HATE**
14
+ * **UIT‑ViCTSD** (Nguyen et al., 2020): 10K comments annotated for **TOXIC** (mapped to **HATE**) or **CLEAN**
15
+ * **ViHOS** (Hoang et al., 2023): span‐level labels aggregated into comment‐level **HATE**/**CLEAN**
16
+
17
+ After renaming and mapping labels (0 = CLEAN; 1 = OFFENSIVE; 2 = HATE) and concatenating - with duplicate comments removed - the final DataFrame contains:
18
+
19
+ * **Columns**:
20
+
21
+ * `dataset`: original source (`ViHSD`/`ViCTSD`/`ViHOS`)
22
+ * `type`: split indicator (`train`/`validation`/`test`)
23
+ * `comment`: raw text
24
+ * `label`: numeric (0/1/2)
25
+
26
+
27
+ ### 2. Supported Tasks and Metrics
28
+
29
+ * **Task**: Text classification – Hate speech detection
30
+ * **Labels**:
31
+
32
+ * 0 → CLEAN (no offensive content)
33
+ * 1 → OFFENSIVE (non‐hate offensive language)
34
+ * 2 → HATE (hate speech)
35
+ * **Metrics**: Accuracy, Precision/Recall/F1 per class
36
+
37
+
38
+ ### 3. Languages
39
+
40
+ * Vietnamese
41
+
42
+
43
+ ### 4. Dataset Structure
44
+
45
+ | Column | Type | Description |
46
+ | --------- | ------ | -------------------------------------- |
47
+ | `dataset` | string | Origin: `ViHSD` / `ViCTSD` / `ViHOS` |
48
+ | `type` | string | Split: `train` / `validation` / `test` |
49
+ | `comment` | string | The social‐media comment in Vietnamese |
50
+ | `label` | int | 0=CLEAN, 1=OFFENSIVE, 2=HATE |
51
+
52
+
53
+ ### 6. Usage
54
+
55
+ ```python
56
+ from datasets import load_dataset
57
+
58
+ ds = load_dataset("your-namespace/visolex-hsd")
59
+
60
+ train_ds = ds.filter(lambda x: x["type"] == "train")
61
+ val_ds = ds.filter(lambda x: x["type"] == "dev")
62
+ test_ds = ds.filter(lambda x: x["type"] == "test")
63
+
64
+ print(train_ds.features)
65
+ print(train_ds[0])
66
+ ```
67
+
68
+ ### 7. Dataset Creation & Processing
69
+
70
+ 1. **Load original CSVs** for ViHSD, ViCTSD, ViHOS.
71
+ 2. **Rename columns** to `comment` and `label`.
72
+ 3. **Map labels**:
73
+
74
+ * ViHSD: keep 0/1/2.
75
+ * ViCTSD: map `Toxicity` 1→2, 0→0.
76
+ * ViHOS: span‐exists→2, no span→0.
77
+ 4. **Concatenate**, retain only `dataset`, `type`, `comment`, `label`.
78
+ 5. **Drop duplicates** on `comment`.
79
+
80
+ (Refer to the code snippet in the prompt.)
81
+
82
+ ### 8. Source & Links
83
+
84
+ * **ViHSD**:
85
+
86
+ * GitHub: [https://github.com/sonlam1102/vihsd](https://github.com/sonlam1102/vihsd)
87
+ * Hugging Face: [https://huggingface.co/datasets/sonlam1102/vihsd](https://huggingface.co/datasets/sonlam1102/vihsd)
88
+ * Paper: Luu et al. (2021), “A large-scale dataset for hate speech detection on Vietnamese social media texts.”
89
+
90
+ * **UIT‑ViCTSD**:
91
+
92
+ * GitHub: https://github.com/tarudesu/ViCTSD
93
+ * Hugging Face: [https://huggingface.co/datasets/tarudesu/ViCTSD](https://huggingface.co/datasets/tarudesu/ViCTSD)
94
+ * Paper: “Constructive and Toxic Speech Detection for Open-domain Social Media Comments in Vietnamese” (Nguyen et al., 2020).
95
+
96
+ * **ViHOS**:
97
+
98
+ * GitHub: [https://github.com/phusroyal/ViHOS](https://github.com/phusroyal/ViHOS)
99
+ * Hugging Face: [https://huggingface.co/datasets/phusroyal/ViHOS](https://huggingface.co/datasets/phusroyal/ViHOS)
100
+ * Paper: Hoang et al. (2023), “ViHOS: Hate Speech Spans Detection for Vietnamese.”
101
+
102
+
103
+ ### 9. Licenses & Citation
104
+
105
+ Please see each source’s license. If unspecified, assume **MIT** or **CC BY 4.0**.
106
+
107
+ **Citation Information**:
108
+
109
+ ```bibtex
110
+ @inproceedings{luu2021large,
111
+ title={A large-scale dataset for hate speech detection on vietnamese social media texts},
112
+ author={Luu, Son T and Nguyen, Kiet Van and Nguyen, Ngan Luu-Thuy},
113
+ booktitle={Advances and Trends in Artificial Intelligence. Artificial Intelligence Practices: 34th International Conference on Industrial, Engineering and Other Applications of Applied Intelligent Systems, IEA/AIE 2021, Kuala Lumpur, Malaysia, July 26--29, 2021, Proceedings, Part I 34},
114
+ pages={415--426},
115
+ year={2021},
116
+ organization={Springer}
117
+ }
118
+ ```
119
+
120
+ ```bibtex
121
+ @InProceedings{nguyen2021victsd,
122
+ author="Nguyen, Luan Thanh and Van Nguyen, Kiet and Nguyen, Ngan Luu-Thuy",
123
+ title="Constructive and Toxic Speech Detection for Open-Domain Social Media Comments in Vietnamese",
124
+ booktitle="Advances and Trends in Artificial Intelligence. Artificial Intelligence Practices",
125
+ year="2021",
126
+ publisher="Springer International Publishing",
127
+ address="Cham",
128
+ pages="572--583"
129
+ }
130
+ ```
131
+ ```bibtex
132
+ @inproceedings{hoang-etal-2023-vihos,
133
+ title = "{V}i{HOS}: Hate Speech Spans Detection for {V}ietnamese",
134
+ author = "Hoang, Phu Gia and
135
+ Luu, Canh Duc and
136
+ Tran, Khanh Quoc and
137
+ Nguyen, Kiet Van and
138
+ Nguyen, Ngan Luu-Thuy",
139
+ booktitle = "Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics",
140
+ month = may,
141
+ year = "2023",
142
+ address = "Dubrovnik, Croatia",
143
+ publisher = "Association for Computational Linguistics",
144
+ url = "https://aclanthology.org/2023.eacl-main.47",
145
+ doi = "10.18653/v1/2023.eacl-main.47",
146
+ pages = "652--669"
147
+ }
148
+ ```
149
+
150
+
151
+
152
+ [1]: https://arxiv.org/html/2404.19252v2?utm_source=chatgpt.com "ViTHSD: Exploiting Hatred by Targets for Hate Speech Detection on ..."
153
+ [2]: https://paperswithcode.com/dataset/uit-victsd?utm_source=chatgpt.com "UIT-ViCTSD Dataset - Papers With Code"
154
+ [3]: https://huggingface.co/datasets/phusroyal/ViHOS "phusroyal/ViHOS · Datasets at Hugging Face"