--- language: - tw - ee - gaa license: cc-by-nc-4.0 task_categories: - question-answering tags: - ghana - african-languages - multilingual - qa - news configs: - config_name: ewe data_files: - split: train path: ewe/train-* - config_name: ga data_files: - split: train path: ga/train-* - config_name: twi data_files: - split: train path: twi/train-* dataset_info: - config_name: ewe features: - name: question dtype: string - name: answer dtype: string - name: lang dtype: string splits: - name: train num_bytes: 312020829 num_examples: 1182565 download_size: 163475994 dataset_size: 312020829 - config_name: ga features: - name: question dtype: string - name: answer dtype: string - name: lang dtype: string splits: - name: train num_bytes: 312020829 num_examples: 1182565 download_size: 157491132 dataset_size: 312020829 - config_name: twi features: - name: question dtype: string - name: answer dtype: string - name: lang dtype: string splits: - name: train num_bytes: 312011594 num_examples: 1182530 download_size: 160030939 dataset_size: 312011594 --- > This dataset is shared under CC BY-NC 4.0, which means you are free to use, share, and adapt it for non-commercial research and educational purposes with attribution. You can read the full license at https://creativecommons.org/licenses/by-nc/4.0/. # Ghana-QA: Ghanaian Question-Answer Pairs Dataset ## Dataset Summary The Ghana-QA dataset consists of question-answer pairs derived from Ghanaian news articles. It contains questions in three widely spoken Ghanaian languages and their corresponding answers. - **Total QA Pairs**: 3,547,660 - **Languages**: Twi, Ewe, Ga - **Source**: Ghanaian news articles - **Project**: Part of the GhanaNLP initiative ## Data Fields - `question`: The question text - `answer`: The corresponding answer text - `lang`: Language code (twi/ewe/ga) ## How to Use The dataset is provided as a single CSV file with all languages combined and shuffled. ```python import pandas as pd # Load the dataset df = pd.read_csv("dataset.csv") # View sample data print(df.head()) print(f"Total QA pairs: {len(df)}") # Filter by language twi_qa = df[df['lang'] == 'twi'] ewe_qa = df[df['lang'] == 'ewe'] ga_qa = df[df['lang'] == 'ga'] print(f"Twi QA pairs: {len(twi_qa)}") print(f"Ewe QA pairs: {len(ewe_qa)}") print(f"Ga QA pairs: {len(ga_qa)}") ``` ### Loading with Hugging Face Datasets ```python from datasets import load_dataset # Load the dataset dataset = load_dataset("ghananlpcommunity/ghana-qa") # Access the data print(dataset['train'][0]) # Filter by language twi_data = dataset['train'].filter(lambda x: x['lang'] == 'twi') ``` ## Language Distribution The dataset includes questions and answers in three Ghanaian languages: - **Twi (twi)**: Akan language spoken in Ghana - **Ewe (ewe)**: Niger-Congo language spoken in Ghana and Togo - **Ga (ga)**: Kwa language spoken primarily in the Greater Accra Region ## Dataset Creation This dataset was created by extracting question-answer pairs from Ghanaian news articles, providing a valuable resource for: - Question-answering model training - Multilingual NLP research - Low-resource language model development - Cross-lingual transfer learning ## Citation Information If you use this dataset, please cite: ```bibtex @dataset{Ghana-QA_2025, title = {Ghana-QA: Ghanaian Question-Answer Pairs}, author = {Mich-Seth Owusu and Priscilla Lartey and Gerhardt Datsomor}, year = {2025}, publisher = {Hugging Face}, url = {https://huggingface.co/datasets/ghananlpcommunity/ghana-qa} } ``` ## License This dataset is released under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/) — free to use, share, and adapt for non-commercial research and educational purposes with attribution. ## Acknowledgments Special thanks to the primary contributors of the Ghana-QA project: **Mich-Seth Owusu**, **Priscilla Lartey**, **Gerhardt Datsomor**, and all other volunteers from the **GhanaNLP community**. This work is part of the GhanaNLP initiative to advance natural language processing for Ghanaian languages. ## Contact For questions or feedback, please reach out through the GhanaNLP community channels or open an issue in the dataset repository.