DANGDOCAO commited on
Commit
43fabf5
·
verified ·
1 Parent(s): 59d6ab6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -157
README.md DELETED
@@ -1,157 +0,0 @@
1
- ---
2
- license: mit
3
- language:
4
- - vi
5
- tags:
6
- - question-generation
7
- - ag, t5, vit5, squad-format, vietnamese, education, nlp
8
- pretty_name: Vietnamese Question Generation
9
- size_categories:
10
- - 10K<n<100K
11
- ---
12
- # Dataset Card for HVU_QA
13
-
14
- **HVU_QA** is an open-source Vietnamese Question–Context–Answer (QCA) corpus and supporting tools for building FAQ-style question generation systems in low-resource languages.
15
- The dataset was created using a fully automated pipeline that combines **web crawling from trustworthy sources, semantic tag-based extraction, and AI-assisted filtering** to ensure high factual accuracy.
16
-
17
- ---
18
-
19
- ## Dataset Summary
20
-
21
- - **Language:** Vietnamese
22
- - **Format:** SQuAD-style JSON
23
- - **Total samples:** 30,000 QCA triples (full corpus released)
24
- - **Domains covered:** Social services, labor law, administrative processes, and other public service topics
25
-
26
- Each entry in the dataset has the following structure:
27
- - **Question:** Generated or extracted question
28
- - **Context:** Supporting text passage from which the answer is derived
29
- - **Answer:** Answer span within the context
30
-
31
- ---
32
-
33
- ## Supported Tasks and Benchmarks
34
-
35
- - **Question Generation (QG)**
36
- - **Question Answering (QA)**
37
- - **FAQ-style dialogue systems**
38
-
39
- A fine-tuned `VietAI/vit5-base` model trained on HVU_QA achieved:
40
- - **BLEU:** 90.61
41
- - **Semantic similarity:** 97.0% (cosine similarity ≥ 0.8)
42
- - **Human evaluation:**
43
- - Grammaticality: 4.58 / 5
44
- - Usefulness: 4.29 / 5
45
-
46
- ---
47
-
48
- ## Languages
49
-
50
- - **Vietnamese** (primary)
51
-
52
- ---
53
-
54
- ## Dataset Structure
55
-
56
- ### Data Fields
57
-
58
- Each sample contains:
59
- - `question`: A natural language question
60
- - `context`: Supporting text passage
61
- - `answer`: The extracted answer span
62
-
63
- ### Data Splits
64
-
65
- | Split | Size |
66
- |-------|------|
67
- | Train | 30,000 |
68
-
69
- ---
70
-
71
- ## Dataset Creation
72
-
73
- ### Creation Pipeline
74
-
75
- The dataset was built using a 4-stage automated process:
76
- 1. **Selecting relevant QA websites** from trusted sources
77
- 2. **Automated data crawling** to collect raw QA webpages
78
- 3. **Extraction via semantic tags** to obtain clean Q–C–A triples
79
- 4. **AI-assisted filtering** to remove noisy or factually inconsistent samples
80
-
81
- ---
82
-
83
- ## Usage Example
84
-
85
- ```python
86
- from datasets import load_dataset
87
-
88
- dataset = load_dataset("DANGDOCAO/GeneratingQuestions")
89
- print(dataset["train"][0])
90
- ```
91
-
92
- Example output:
93
- ```json
94
- {
95
- "question": "What type of coffee is famous in Vietnam?",
96
- "context": "Iced milk coffee is a famous drink in Vietnam.",
97
- "answer": "Iced milk coffee"
98
- }
99
- ```
100
-
101
- ---
102
-
103
- ## Training & Fine-tuning
104
-
105
- To fine-tune a question generation model:
106
-
107
- ```bash
108
- python fine_tune_qg.py
109
- ```
110
-
111
- - Loads `30ktrain.json`
112
- - Fine-tunes `VietAI/vit5-base`
113
- - Saves model as `t5-viet-qg-finetuned/`
114
-
115
- 👉 Alternatively, you can use the pre-trained model provided here:
116
- [Pre-trained model link](https://huggingface.co/datasets/DANGDOCAO/GeneratingQuestions/tree/main)
117
-
118
- ---
119
-
120
- ## Question Generation Example
121
-
122
- ```bash
123
- python generate_question.py
124
- ```
125
-
126
- **Input passage:**
127
- ```
128
- Iced milk coffee is a famous drink in Vietnam.
129
- ```
130
-
131
- **Generated questions:**
132
- 1. What type of coffee is famous in Vietnam?
133
- 2. Why is iced milk coffee popular?
134
- 3. What ingredients are included in iced milk coffee?
135
- 4. Where does iced milk coffee originate from?
136
- 5. How is Vietnamese iced milk coffee prepared?
137
-
138
- ---
139
-
140
- ## Citation
141
-
142
- If you use **HVU_QA** in your research, please cite:
143
-
144
- ```bibtex
145
- @inproceedings{nguyen2025hvuqa,
146
- title={A Method to Build QA Corpora for Low-Resource Languages},
147
- author={Ha Nguyen-Tien and Phuc Le-Hong and Dang Do-Cao and Cuong Nguyen-Hung and Chung Mai-Van},
148
- booktitle={Proceedings of the International Conference on Knowledge and Systems Engineering (KSE)},
149
- year={2025}
150
- }
151
- ```
152
-
153
- ---
154
-
155
- ## License
156
-
157
- This dataset is released for **research purposes only** under the **CC BY-NC-SA 4.0 license**.