DANGDOCAO commited on
Commit
ac9f65b
·
verified ·
1 Parent(s): 607b233

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +34 -25
README.md CHANGED
@@ -15,7 +15,8 @@ size_categories:
15
  ---
16
  # HVU_QA
17
 
18
- **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. 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.
 
19
 
20
  ---
21
 
@@ -27,19 +28,21 @@ size_categories:
27
  - **Domains covered:** Social services, labor law, administrative processes, and other public service topics.
28
 
29
  Each data sample contains:
30
- - `question`: Generated or extracted question
31
- - `context`: Supporting text passage from which the answer is derived
32
- - `answer`: Answer span within the context
 
33
 
34
  ---
35
 
36
  ## ⚙️ Dataset Creation
37
 
38
  **Pipeline:**
39
- 1. Selecting relevant QA websites from trusted sources
40
- 2. Automated data crawling to collect raw QA webpages
41
- 3. Extraction via semantic tags to obtain clean Question–Context–Answer triples
42
- 4. AI-assisted filtering to remove noisy or factually inconsistent samples
 
43
 
44
  **Licensing:** All data are collected from public-domain Vietnamese government/service portals and released under CC BY 4.0.
45
 
@@ -49,12 +52,12 @@ Each data sample contains:
49
 
50
  A fine-tuned `VietAI/vit5-base` model trained on HVU_QA achieved:
51
 
52
- | Metric | Score |
53
- |----------------------|--------------|
54
- | BLEU | 90.61 |
55
- | Semantic similarity | 97.0% (cos ≥ 0.8) |
56
- | Human grammar score | 4.58 / 5 |
57
- | Human usefulness | 4.29 / 5 |
58
 
59
  These results confirm that HVU_QA is a high-quality resource for developing robust FAQ-style question generation models.
60
 
@@ -69,6 +72,7 @@ These results confirm that HVU_QA is a high-quality resource for developing robu
69
  "answer": "Iced milk coffee"
70
  }
71
  ```
 
72
  ---
73
 
74
  ## ⚡ How to Use
@@ -79,7 +83,7 @@ These results confirm that HVU_QA is a high-quality resource for developing robu
79
  pip install datasets transformers sentencepiece safetensors accelerate evaluate sacrebleu rouge-score nltk scikit-learn
80
  ```
81
 
82
- *(Install PyTorch separately from [pytorch.org](https://pytorch.org) if not installed yet)*
83
 
84
  ---
85
 
@@ -87,6 +91,7 @@ pip install datasets transformers sentencepiece safetensors accelerate evaluate
87
 
88
  ```python
89
  from datasets import load_dataset
 
90
  ds = load_dataset("DANGDOCAO/GeneratingQuestions", split="train")
91
  print(ds[0])
92
  ```
@@ -95,28 +100,30 @@ print(ds[0])
95
 
96
  ## 🚀 Example Usage
97
 
98
- ### 🔹 Fine-tuning
99
 
100
  ```bash
101
  python fine_tune_qg.py
102
  ```
103
 
104
  This will:
105
- 1. Load the dataset from `30ktrain.json`
106
- 2. Fine-tune `VietAI/vit5-base`
107
- 3. Save the trained model into `t5-viet-qg-finetuned/`
108
 
109
- *(Or download the pre-trained model: [t5-viet-qg-finetuned](https://huggingface.co/datasets/DANGDOCAO/GeneratingQuestions/tree/main))*
 
 
 
 
110
 
111
  ---
112
 
113
- ### 🔹 Generating Questions
114
 
115
  ```bash
116
  python generate_question.py
117
  ```
118
 
119
  **Example:**
 
120
  ```
121
  Input passage:
122
  Iced milk coffee is a famous drink in Vietnam.
@@ -124,14 +131,16 @@ Number of questions: 5
124
  ```
125
 
126
  **Output:**
 
127
  1. What type of coffee is famous in Vietnam?
128
  2. Why is iced milk coffee popular?
129
  3. What ingredients are included in iced milk coffee?
130
  4. Where does iced milk coffee originate from?
131
- 5. How is Vietnamese iced milk coffee prepared?
132
 
133
- **You can adjust** in `generate_question.py`:
134
- `top_k`, `top_p`, `temperature`, `no_repeat_ngram_size`, `repetition_penalty`
 
135
 
136
  ---
137
 
@@ -146,4 +155,4 @@ If you use **HVU_QA** in your research, please cite:
146
  booktitle={Proceedings of the International Conference on Knowledge and Systems Engineering (KSE)},
147
  year={2025}
148
  }
149
- ```
 
15
  ---
16
  # HVU_QA
17
 
18
+ **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.
19
+ 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.
20
 
21
  ---
22
 
 
28
  - **Domains covered:** Social services, labor law, administrative processes, and other public service topics.
29
 
30
  Each data sample contains:
31
+
32
+ - `question`: Generated or extracted question
33
+ - `context`: Supporting text passage from which the answer is derived
34
+ - `answer`: Answer span within the context
35
 
36
  ---
37
 
38
  ## ⚙️ Dataset Creation
39
 
40
  **Pipeline:**
41
+
42
+ 1. Selecting relevant QA websites from trusted sources.
43
+ 2. Automated data crawling to collect raw QA webpages.
44
+ 3. Extraction via semantic tags to obtain clean Question–Context–Answer triples.
45
+ 4. AI-assisted filtering to remove noisy or factually inconsistent samples.
46
 
47
  **Licensing:** All data are collected from public-domain Vietnamese government/service portals and released under CC BY 4.0.
48
 
 
52
 
53
  A fine-tuned `VietAI/vit5-base` model trained on HVU_QA achieved:
54
 
55
+ | Metric | Score |
56
+ |-------------------------|----------------|
57
+ | BLEU | 90.61 |
58
+ | Semantic similarity | 97.0% (cos ≥ 0.8) |
59
+ | Human grammar score | 4.58 / 5 |
60
+ | Human usefulness score | 4.29 / 5 |
61
 
62
  These results confirm that HVU_QA is a high-quality resource for developing robust FAQ-style question generation models.
63
 
 
72
  "answer": "Iced milk coffee"
73
  }
74
  ```
75
+
76
  ---
77
 
78
  ## ⚡ How to Use
 
83
  pip install datasets transformers sentencepiece safetensors accelerate evaluate sacrebleu rouge-score nltk scikit-learn
84
  ```
85
 
86
+ *(Install PyTorch separately from [pytorch.org](https://pytorch.org) if not installed yet.)*
87
 
88
  ---
89
 
 
91
 
92
  ```python
93
  from datasets import load_dataset
94
+
95
  ds = load_dataset("DANGDOCAO/GeneratingQuestions", split="train")
96
  print(ds[0])
97
  ```
 
100
 
101
  ## 🚀 Example Usage
102
 
103
+ ### Fine-tuning
104
 
105
  ```bash
106
  python fine_tune_qg.py
107
  ```
108
 
109
  This will:
 
 
 
110
 
111
+ 1. Load the dataset from `30ktrain.json`.
112
+ 2. Fine-tune `VietAI/vit5-base`.
113
+ 3. Save the trained model into `t5-viet-qg-finetuned/`.
114
+
115
+ *(Or download the pre-trained model: [t5-viet-qg-finetuned](https://huggingface.co/datasets/DANGDOCAO/GeneratingQuestions/tree/main).)*
116
 
117
  ---
118
 
119
+ ### Generating Questions
120
 
121
  ```bash
122
  python generate_question.py
123
  ```
124
 
125
  **Example:**
126
+
127
  ```
128
  Input passage:
129
  Iced milk coffee is a famous drink in Vietnam.
 
131
  ```
132
 
133
  **Output:**
134
+
135
  1. What type of coffee is famous in Vietnam?
136
  2. Why is iced milk coffee popular?
137
  3. What ingredients are included in iced milk coffee?
138
  4. Where does iced milk coffee originate from?
139
+ 5. How is Vietnamese iced milk coffee prepared?
140
 
141
+ **You can adjust** in `generate_question.py`:
142
+
143
+ - `top_k`, `top_p`, `temperature`, `no_repeat_ngram_size`, `repetition_penalty`
144
 
145
  ---
146
 
 
155
  booktitle={Proceedings of the International Conference on Knowledge and Systems Engineering (KSE)},
156
  year={2025}
157
  }
158
+ ```