Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

HVU_QA

HVU_QA is a project dedicated to sharing datasets and tools for Question Generation Processing (NLP), developed and maintained by the research team at Hung Vuong University (HVU), Phu Tho, Vietnam.
This project is supported by Hung Vuong University, Phu Tho, Vietnam, with the aim of advancing research and applications in low-resource language processing, particularly for the Vietnamese language.


πŸ“š Overview

This repository enables you to:

  1. Fine-tune the VietAI/vit5-base model on your own GQ dataset.
  2. Generate multiple, diverse questions given a user-provided text passage (context).

πŸ“ Datasets

  • Built following the SQuAD v2.0 standard, ensuring compatibility with NLP pipelines.
  • Includes tens of thousands of high-quality Question–Context–Answer triples (QCA).
  • Suitable for both training and evaluation.

πŸ“ Vietnamese Question Generation Tool

A command-line tool for:

  • Fine-tuning a question generation model.
  • Automatically generating questions from Vietnamese text.

Built on Hugging Face Transformers (VietAI/vit5-base) and PyTorch.


Features

  • Fine-tune a question generation model with SQuAD v2.0 format data.
  • Generate diverse and creative questions from text passages.
  • Flexible generation parameters (top-k, top-p, temperature, etc.).
  • Simple command-line usage.
  • GPU support if available.

πŸ“Š Evaluation Results

We conducted both manual evaluation (500 samples) and automatic evaluation (1,000 samples).

Evaluation Type Precision Recall F1-Score
Automatic (1000) 0.85 0.83 0.84
Manual (500) 0.88 0.86 0.87

➑️ The model generates diverse, grammatically correct, and contextually appropriate questions.


Creation Process

The dataset was built using a 4-stage automated pipeline:

  1. Select relevant QA websites from trusted sources.
  2. Automatic crawling to collect raw QA pages.
  3. Semantic tag extraction to obtain clean Question–Context–Answer triples.
  4. AI-assisted filtering to remove noisy or inconsistent samples.

πŸ“ Quality Evaluation

A fine-tuned model trained on HVU_QA (VietAI/vit5-base) achieved:

  • BLEU Score: 90.61
  • Semantic similarity: 97.0% (cosine β‰₯ 0.8)
  • Human evaluation:
    • Grammar: 4.58 / 5
    • Usefulness: 4.29 / 5

➑️ These results confirm that HVU_QA is a high-quality resource for developing robust FAQ-style question generation models.


πŸ“‚ Project Structure

.HVU_QA
β”œβ”€β”€ t5-viet-qg-finetuned/
β”œβ”€β”€ fine_tune_qg.py
β”œβ”€β”€ generate_question.py
β”œβ”€β”€ 30ktrain.json
└── README.md

All data files are UTF-8 encoded and ready for use in NLP pipelines.


πŸ› οΈ Requirements

  • Python 3.8+
  • PyTorch >= 1.9
  • Transformers >= 4.30
  • scikit-learn
  • Fine-tuned model (download at: link)

βš™οΈ Setup

πŸ› οΈ Step 1: Download and Extract

  1. Download HVU_QA.zip

  2. Extract into a folder, e.g.:

    D:\your\HVU_QA
    

πŸ› οΈ Step 2: Add to Environment Path (if needed)

  1. Open System Properties β†’ Environment Variables

  2. Select Path β†’ Edit β†’ New

  3. Add the path, e.g.:

    D:\your\HVU_QA
    

πŸ› οΈ Step 3: Open in Visual Studio Code

File > Open Folder > D:\HVU_QA

πŸ› οΈ Step 4: Install Required Libraries

Open Terminal and run:

Windows (PowerShell)

Required only

python -m pip install --upgrade pip
pip install torch transformers datasets scikit-learn sentencepiece safetensors

Required + Optional

python -m pip install --upgrade pip
pip install torch transformers datasets scikit-learn sentencepiece safetensors accelerate tensorboard evaluate sacrebleu rouge-score nltk

Linux / macOS (bash/zsh)

Required only

python3 -m pip install --upgrade pip
pip install torch transformers datasets scikit-learn sentencepiece safetensors

Required + Optional

python3 -m pip install --upgrade pip
pip install torch transformers datasets scikit-learn sentencepiece safetensors accelerate tensorboard evaluate sacrebleu rouge-score nltk

βœ… Verify installation:

  • Windows (PowerShell)
python -c "import torch, transformers, datasets, sklearn, sentencepiece, safetensors, accelerate, tensorboard, evaluate, sacrebleu, rouge_score, nltk; print('βœ… All dependencies installed correctly!')"
  • Linux/macOS
python3 -c "import torch, transformers, datasets, sklearn, sentencepiece, safetensors, accelerate, tensorboard, evaluate, sacrebleu, rouge_score, nltk; print('βœ… All dependencies installed correctly!')"

Usage

  • Train and evaluate a question generation model.
  • Develop Vietnamese NLP tools.
  • Conduct linguistic research.

Training (Fine-tuning)

When you run fine_tune_qg.py, the script will:

  1. Load the dataset from 30ktrain.json
  2. Fine-tune the VietAI/vit5-base model
  3. Save the trained model into a new folder named t5-viet-qg-finetuned/

Run:

python fine_tune_qg.py

Generating Questions

python generate_question.py

Example:

Input passage:
Iced milk coffee (CΓ  phΓͺ sα»―a Δ‘Γ‘) is a famous drink in Vietnam.

Number of questions: 5

βœ… Output:

  1. What type of coffee is famous in Vietnam?
  2. Why is iced milk coffee popular?
  3. What ingredients are included in iced milk coffee?
  4. Where does iced milk coffee originate from?
  5. How is Vietnamese iced milk coffee prepared?

βš™οΈ Generation Settings

In generate_question.py, you can adjust:

  • top_k, top_p, temperature, no_repeat_ngram_size, repetition_penalty

🀝 Contribution

We welcome contributions:

  • Open issues
  • Submit pull requests
  • Suggest improvements or add datasets

πŸ“„ Citation

If you use this repository or datasets in research, please cite:

Ha Nguyen-Tien, Phuc Le-Hong, Dang Do-Cao, Cuong Nguyen-Hung, Chung Mai-Van. 2025. A Method to Build QA Corpora for Low-Resource Languages. Proceedings of KSE 2025. ACM TALLIP.

πŸ“š BibTeX

@inproceedings{nguyen2025hvuqa,
  title={A Method to Build QA Corpora for Low-Resource Languages},
  author={Ha Nguyen-Tien and Phuc Le-Hong and Dang Do-Cao and Cuong Nguyen-Hung and Chung Mai-Van},
  booktitle={Proceedings of KSE 2025},
  year={2025}
}

πŸ“¬ Contact

πŸ“ Faculty of Engineering and Technology, Hung Vuong University, Phu Tho, Vietnam
🌐 https://hvu.edu.vn


This repository is part of our ongoing effort to support Vietnamese NLP and make language technology more accessible for low-resource and underrepresented languages.

Downloads last month
1,884