--- license: mit task_categories: - question-answering language: - vi tags: - question-generation - nlp - faq - low-resource pretty_name: HVU_QA size_categories: - 10K All data files are UTF-8 encoded and ready for use in NLP pipelines. ## ⚡ How to Use ### 📦 Install Dependencies ```bash pip install datasets transformers sentencepiece safetensors accelerate evaluate sacrebleu rouge-score nltk scikit-learn ``` *(Install PyTorch separately from [pytorch.org](https://pytorch.org) if not installed yet.)* ### 📥 Load Dataset from Hugging Face Hub ```python from datasets import load_dataset ds = load_dataset("DANGDOCAO/GeneratingQuestions", split="train") print(ds[0]) ``` ## 🚀 Example Usage ### 🔹 Fine-tuning ```bash python fine_tune_qg.py ``` This will: 1. Load the dataset from `30ktrain.json`. 2. Fine-tune `VietAI/vit5-base`. 3. Save the trained model into `t5-viet-qg-finetuned/`. *(Or download the pre-trained model: [t5-viet-qg-finetuned](https://huggingface.co/datasets/DANGDOCAO/GeneratingQuestions/tree/main).)* ### 🔹 Generating Questions ```bash python generate_question.py ``` **Example:** ``` Input passage: Iced milk coffee 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? **You can adjust** in `generate_question.py`: - `top_k`, `top_p`, `temperature`, `no_repeat_ngram_size`, `repetition_penalty` ## 📌 Citation If you use **HVU_QA** in your research, please cite: ```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 the International Conference on Knowledge and Systems Engineering (KSE)}, year={2025} } ```