Datasets:
File size: 6,111 Bytes
1e72534 e542338 1e72534 67b4315 1e72534 67b4315 1e72534 43dd6d9 1e72534 e268064 76acaf8 e268064 76acaf8 1e72534 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
---
annotations_creators: []
language_creators: []
language:
- pl
- en
license:
- cc-by-sa-4.0
multilinguality:
- monolingual
- multilingual
size_categories: []
source_datasets:
- found
task_categories: []
task_ids: []
pretty_name: 'PUGG: KG for KBQA task in Polish'
tags:
- knowledge graph
- KBQA
- wikipedia
- wikidata
configs:
- config_name: 1H_triples
data_files:
- split: train
path: 1/triples.jsonl
- config_name: 1H_attributes
data_files:
- split: train
path: 1/attributes.jsonl
- config_name: 1H_labels_en
data_files:
- split: train
path: 1/labels_en.jsonl
- config_name: 1H_descriptions
data_files:
- split: train
path: 1/descriptions.jsonl
- config_name: 1H_aliases
data_files:
- split: train
path: 1/aliases.jsonl
- config_name: 1H_labels_pl
data_files:
- split: train
path: 1/labels_pl.jsonl
- config_name: 1H_times
data_files:
- split: train
path: 1/times.jsonl
- config_name: 2H_triples
data_files:
- split: train
path: 2/triples.jsonl
- config_name: 2H_attributes
data_files:
- split: train
path: 2/attributes.jsonl
- config_name: 2H_labels_en
data_files:
- split: train
path: 2/labels_en.jsonl
- config_name: 2H_descriptions
data_files:
- split: train
path: 2/descriptions.jsonl
- config_name: 2H_aliases
data_files:
- split: train
path: 2/aliases.jsonl
- config_name: 2H_labels_pl
data_files:
- split: train
path: 2/labels_pl.jsonl
- config_name: 2H_times
data_files:
- split: train
path: 2/times.jsonl
---
# PUGG: KBQA, MRC, IR Dataset for Polish
## Description
This repository contains the **knowledge graph** dedicated for
the KBQA (Knowledge Base Question Answering) task within the PUGG dataset. This repository does not
contain directly any task, but it provides the knowledge graph that can be used to solve the KBQA
task from the PUGG dataset.
### Graphs
We provide sampled versions of the knowledge graph based on Wikidata:
- **Wikidata1H**: A subgraph created by traversing 1 relation from each answer and topic entity.
- **Wikidata2H**: A subgraph created by traversing 2 relations from each answer and topic entity.
### How We Created the Graphs
1. We used the Wikidata dump from 2023-10-16. The dump is available on S3 via the DVC tool (see [code repository](https://github.com/CLARIN-PL/PUGG)).
2. We collected all answer and topic entities from the PUGG dataset.
3. We traversed the graph from each answer and topic entity for *n* hops.
4. We filtered out entities that do not have labels in Polish.
5. We saved the subgraphs in various structures:
* triples
* labels_pl
* labels_en
* aliases (Polish)
* descriptions (Polish)
* attributes
* times
See [Usage](#usage) for more information on how to load the graphs.
## Paper
For more detailed information, please refer to our research paper titled:
**"Developing PUGG for Polish: A Modern Approach to KBQA, MRC, and IR Dataset Construction"**
Authored by:
* Albert Sawczyn
* Katsiaryna Viarenich
* Konrad Wojtasik
* Aleksandra Domogała
* Marcin Oleksy
* Maciej Piasecki
* Tomasz Kajdanowicz
The paper was accepted for ACL 2024 (findings).
## Repositories
The PUGG dataset is available in the following repositories:
* [General](https://huggingface.co/datasets/clarin-pl/PUGG) - contains all tasks (KBQA, MRC, IR)
For more straightforward usage, the tasks are also available in separate repositories:
* [KBQA](https://huggingface.co/datasets/clarin-pl/PUGG_KBQA)
* [MRC](https://huggingface.co/datasets/clarin-pl/PUGG_MRC)
* [IR](https://huggingface.co/datasets/clarin-pl/PUGG_IR)
The knowledge graph for KBQA task is available in the following repository:
* [Knowledge Graph](https://huggingface.co/datasets/clarin-pl/PUGG_KG) **(this repository)**
Note: If you want to utilize the IR task in the BEIR format (`qrels` in `.tsv` format), please
download the [IR](https://huggingface.co/datasets/clarin-pl/PUGG_IR) repository.
## Links
* Code:
* [Github](https://github.com/CLARIN-PL/PUGG)
* Paper:
* ACL - TBA
* [Arxiv](https://arxiv.org/abs/2408.02337)
## Citation
```bibtex
@misc{sawczyn2024developingpuggpolishmodern,
title={Developing PUGG for Polish: A Modern Approach to KBQA, MRC, and IR Dataset Construction},
author={Albert Sawczyn and Katsiaryna Viarenich and Konrad Wojtasik and Aleksandra Domogała and Marcin Oleksy and Maciej Piasecki and Tomasz Kajdanowicz},
year={2024},
eprint={2408.02337},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2408.02337},
}
```
## Contact
albert.sawczyn@pwr.edu.pl
## Usage
```python
from datasets import load_dataset
dataset_1H_triples = load_dataset("clarin-pl/PUGG_KG", '1H_triples')
print(dataset_1H_triples)
dataset_1H_labels_pl = load_dataset("clarin-pl/PUGG_KG", '1H_labels_pl')
print(dataset_1H_labels_pl)
dataset_1H_labels_en = load_dataset("clarin-pl/PUGG_KG", '1H_labels_en')
print(dataset_1H_labels_en)
dataset_1H_aliases = load_dataset("clarin-pl/PUGG_KG", '1H_aliases')
print(dataset_1H_aliases)
dataset_1H_descriptions = load_dataset("clarin-pl/PUGG_KG", '1H_descriptions')
print(dataset_1H_descriptions)
dataset_1H_attributes = load_dataset("clarin-pl/PUGG_KG", '1H_attributes')
print(dataset_1H_attributes)
dataset_1H_times = load_dataset("clarin-pl/PUGG_KG", '1H_times')
print(dataset_1H_times)
dataset_2H_triples = load_dataset("clarin-pl/PUGG_KG", '2H_triples')
print(dataset_2H_triples)
dataset_2H_labels_pl = load_dataset("clarin-pl/PUGG_KG", '2H_labels_pl')
print(dataset_2H_labels_pl)
dataset_2H_labels_en = load_dataset("clarin-pl/PUGG_KG", '2H_labels_en')
print(dataset_2H_labels_en)
dataset_2H_aliases = load_dataset("clarin-pl/PUGG_KG", '2H_aliases')
print(dataset_2H_aliases)
dataset_2H_descriptions = load_dataset("clarin-pl/PUGG_KG", '2H_descriptions')
print(dataset_2H_descriptions)
dataset_2H_attributes = load_dataset("clarin-pl/PUGG_KG", '2H_attributes')
print(dataset_2H_attributes)
dataset_2H_times = load_dataset("clarin-pl/PUGG_KG", '2H_times')
print(dataset_2H_times)
```
|