File size: 4,035 Bytes
7a30326
3d5bb85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24a88de
7a30326
3d5bb85
7a30326
6f88997
 
3d5bb85
 
 
 
 
 
 
 
 
6f88997
 
 
3d5bb85
6f88997
 
 
 
 
 
 
 
14edf0a
6f88997
3d5bb85
 
 
 
f3561b9
3d5bb85
 
 
b480258
 
 
3d5bb85
 
 
 
 
c1fe567
 
 
6f88997
 
 
 
 
 
99cb663
14edf0a
 
 
99cb663
 
 
 
 
 
 
 
 
 
 
14edf0a
 
 
 
 
3d5bb85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
annotations_creators:
- expert-generated
language_creators: []
language:
- pl
license:
- cc-by-sa-4.0
multilinguality:
- monolingual
size_categories:
- 1K<n<10K
- 10K<n<100K
source_datasets:
- original
task_categories:
- question-answering
- text-retrieval
task_ids:
- extractive-qa
- document-retrieval
pretty_name: 'PUGG: KBQA, MRC, IR dataset for Polish'
tags:
- knowledge graph
- KBQA
- wikipedia
- wikidata
configs:
- config_name: kbqa_all
  data_files:
  - split: train
    path: kbqa/*/train.jsonl
  - split: test
    path: kbqa/*/test.jsonl
- config_name: kbqa_natural
  data_files:
  - split: train
    path: kbqa/natural/train.jsonl
  - split: test
    path: kbqa/natural/test.jsonl
- config_name: kbqa_template-based
  data_files:
  - split: train
    path: kbqa/template-based/train.jsonl
  - split: test
    path: kbqa/template-based/test.jsonl
- config_name: mrc
  data_files:
  - split: train
    path: mrc/train.jsonl
  - split: test
    path: mrc/test.jsonl
- config_name: ir_corpus
  data_files:
  - split: test
    path: ir/corpus.jsonl
- config_name: ir_queries
  data_files:
  - split: test
    path: ir/queries.jsonl
- config_name: ir_qrels
  data_files:
  - split: test
    path: ir/qrels/test.jsonl
---
# PUGG: KBQA, MRC, IR Dataset for Polish

## Description

This repository contains the PUGG dataset designed for three NLP tasks in the Polish language:

- KBQA (Knowledge Base Question Answering)
- MRC (Machine Reading Comprehension)
- IR (Information Retrieval)

## 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 dataset is available in the following repositories:

* [General](https://huggingface.co/datasets/clarin-pl/PUGG) **(this repository)** - 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) 

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

# loading KBQA (all)
dataset = load_dataset("clarin-pl/PUGG", "kbqa_all")
print(dataset)

# loading KBQA (natural)
dataset = load_dataset("clarin-pl/PUGG", "kbqa_natural")
print(dataset)

# loading KBQA (template-based)
dataset = load_dataset("clarin-pl/PUGG", "kbqa_template-based")
print(dataset)

# loading MRC

dataset = load_dataset("clarin-pl/PUGG", "mrc")
print(dataset)

# loading IR

## corpus
dataset = load_dataset("clarin-pl/PUGG", "ir_corpus")
print(dataset)

## queries
dataset = load_dataset("clarin-pl/PUGG", "ir_queries")
print(dataset)

## qrels
dataset = load_dataset("clarin-pl/PUGG", "ir_qrels")
print(dataset)
```