Datasets:
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- vi
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-classification
|
| 6 |
+
- token-classification
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## Dataset Card for ViHOS
|
| 10 |
+
|
| 11 |
+
### 1. Dataset Summary
|
| 12 |
+
|
| 13 |
+
**ViHOS** (Vietnamese Hate and Offensive Spans) is the first Vietnamese corpus with **span-level** annotations of hateful and offensive content. It contains **26,476** annotated spans over **11,056** comments:
|
| 14 |
+
|
| 15 |
+
* **5,360** comments containing ≥1 hate/offensive spans
|
| 16 |
+
* **5,696** clean comments (no spans)
|
| 17 |
+
|
| 18 |
+
Annotations cover a rich variety of phenomena (teencodes, metaphors, puns, etc.), with both span‑extraction and sequence‑labeling formats.
|
| 19 |
+
|
| 20 |
+
### 2. Supported Tasks and Leaderboard
|
| 21 |
+
|
| 22 |
+
* **Primary Task**: Sequence labeling / span extraction for hate/offensive detection
|
| 23 |
+
* **Metrics**: Precision, recall, F1‑score on span detection
|
| 24 |
+
|
| 25 |
+
*No public leaderboard; share your results in the ViSoLex repo!*
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
### 3. Languages
|
| 29 |
+
|
| 30 |
+
* Vietnamese
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
### 4. Data Fields
|
| 34 |
+
|
| 35 |
+
| Column | Type | Description |
|
| 36 |
+
| ------------- | -------- | --------------------------------------------------------------------------- |
|
| 37 |
+
| `sentence` | `string` | The raw Vietnamese comment. |
|
| 38 |
+
| `word` | `string` | Words in the sentence after the processing of tokenization using VnCoreNLP tokenizer |
|
| 39 |
+
| `index_spans` | `string` | JSON‑encoded list of indices (for span extraction) *or* list of BIO labels. |
|
| 40 |
+
| `tag` | `string` | The tag of the word. The tag is either B-T (beginning of a word), I-T (inside of a word), or O (outside of a word) |
|
| 41 |
+
| `type` | `string` | Split: `train` / `validation` / `test`. |
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
### 5. Usage
|
| 45 |
+
|
| 46 |
+
```python
|
| 47 |
+
from datasets import load_dataset
|
| 48 |
+
|
| 49 |
+
ds = load_dataset("visolex/ViHOS")
|
| 50 |
+
|
| 51 |
+
train_ds = ds.filter(lambda x: x["type"] == "train")
|
| 52 |
+
dev_ds = ds.filter(lambda x: x["type"] == "dev")
|
| 53 |
+
test_ds = ds.filter(lambda x: x["type"] == "test")
|
| 54 |
+
|
| 55 |
+
# Example
|
| 56 |
+
print(train_ds[0])
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
### 6. Dataset Creation & Sources
|
| 60 |
+
|
| 61 |
+
* **GitHub Repository** (source code & raw data):
|
| 62 |
+
[https://github.com/phusroyal/ViHOS](https://github.com/phusroyal/ViHOS)
|
| 63 |
+
* **Hugging Face Dataset**:
|
| 64 |
+
[https://huggingface.co/datasets/phusroyal/ViHOS](https://huggingface.co/datasets/phusroyal/ViHOS)
|
| 65 |
+
* **Original Paper**:
|
| 66 |
+
Hoang et al. (2023), “ViHOS: Hate Speech Spans Detection for Vietnamese” see citation below
|
| 67 |
+
|
| 68 |
+
We downloaded the original train/validation/test JSONs, converted both span‑extraction and sequence‑labeling views into a single CSV, and added a `type` column.
|
| 69 |
+
|
| 70 |
+
### 7. Licenses and Citation
|
| 71 |
+
|
| 72 |
+
#### License
|
| 73 |
+
|
| 74 |
+
Please refer to the `LICENSE` in the GitHub repo. If unspecified, assume **CC BY 4.0**.
|
| 75 |
+
|
| 76 |
+
#### How to Cite
|
| 77 |
+
|
| 78 |
+
**ViHOS Paper**
|
| 79 |
+
|
| 80 |
+
```bibtex
|
| 81 |
+
@inproceedings{hoang-etal-2023-vihos,
|
| 82 |
+
title = {ViHOS: Hate Speech Spans Detection for Vietnamese},
|
| 83 |
+
author = {Hoang, Phu Gia and Luu, Canh Duc and Tran, Khanh Quoc and Nguyen, Kiet Van and Nguyen, Ngan Luu‑Thuy},
|
| 84 |
+
booktitle = {Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics},
|
| 85 |
+
month = may,
|
| 86 |
+
year = {2023},
|
| 87 |
+
address = {Dubrovnik, Croatia},
|
| 88 |
+
publisher = {Association for Computational Linguistics},
|
| 89 |
+
url = {https://aclanthology.org/2023.eacl-main.47},
|
| 90 |
+
doi = {10.18653/v1/2023.eacl-main.47},
|
| 91 |
+
pages = {652--669}
|
| 92 |
+
}
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
**Hugging Face Dataset**
|
| 96 |
+
|
| 97 |
+
```bibtex
|
| 98 |
+
@misc{phusroyal_vihos,
|
| 99 |
+
title = {ViHOS: Vietnamese Hate and Offensive Spans},
|
| 100 |
+
author = {{phusroyal}},
|
| 101 |
+
howpublished = {\url{https://huggingface.co/datasets/phusroyal/ViHOS}},
|
| 102 |
+
year = {2023}
|
| 103 |
+
}
|
| 104 |
+
```
|