Datasets:
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- 1/aliases.jsonl +0 -0
- 1/attributes.jsonl +3 -0
- 1/descriptions.jsonl +0 -0
- 1/labels_en.jsonl +0 -0
- 1/labels_pl.jsonl +0 -0
- 1/times.jsonl +3 -0
- 1/triples.jsonl +3 -0
- 2/aliases.jsonl +3 -0
- 2/attributes.jsonl +3 -0
- 2/descriptions.jsonl +3 -0
- 2/labels_en.jsonl +3 -0
- 2/labels_pl.jsonl +3 -0
- 2/times.jsonl +3 -0
- 2/triples.jsonl +3 -0
- README.md +214 -0
.gitattributes
CHANGED
@@ -56,3 +56,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
# Video files - compressed
|
57 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
58 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
59 |
+
1/attributes.jsonl filter=lfs diff=lfs merge=lfs -text
|
60 |
+
1/times.jsonl filter=lfs diff=lfs merge=lfs -text
|
61 |
+
1/triples.jsonl filter=lfs diff=lfs merge=lfs -text
|
62 |
+
2/aliases.jsonl filter=lfs diff=lfs merge=lfs -text
|
63 |
+
2/attributes.jsonl filter=lfs diff=lfs merge=lfs -text
|
64 |
+
2/descriptions.jsonl filter=lfs diff=lfs merge=lfs -text
|
65 |
+
2/labels_en.jsonl filter=lfs diff=lfs merge=lfs -text
|
66 |
+
2/labels_pl.jsonl filter=lfs diff=lfs merge=lfs -text
|
67 |
+
2/times.jsonl filter=lfs diff=lfs merge=lfs -text
|
68 |
+
2/triples.jsonl filter=lfs diff=lfs merge=lfs -text
|
1/aliases.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
1/attributes.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b255aa5f92b4421c10135350c48cc26099b51edb6a055a04379ca6bc7231a16e
|
3 |
+
size 124684921
|
1/descriptions.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
1/labels_en.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
1/labels_pl.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
1/times.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1fbed3dfbf0f8708ad98b60961d7affdd0c4e2c1889a599238c330bfc2b407e
|
3 |
+
size 13526355
|
1/triples.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:12511e3f220544f619ef15eb9f513f21c0e87090c07fb9955757a004a8a5b4f0
|
3 |
+
size 58407787
|
2/aliases.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a53963c4befb6d0023a7d8bb5dc559cf4814069f61abdf0fd583c02424271a8c
|
3 |
+
size 22128132
|
2/attributes.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:15c6967e1c21375c14994879f7b6193f4f61dd05c54cbdbc224ee6b9dac181e4
|
3 |
+
size 402170014
|
2/descriptions.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae499eea6c78a3f9be2104cb3daac09677ffd9365393b06f397dcb96191271b0
|
3 |
+
size 29362224
|
2/labels_en.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a89b8001c736edf6e817f5fa3139a71cc784c2ba6134ce03a94b73e29f326dd4
|
3 |
+
size 32036275
|
2/labels_pl.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dfc90d1bdb88c21acbe4bc0dd03579e1796fb2636347813547052d2e96f8ea7a
|
3 |
+
size 25700932
|
2/times.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46da52b79b7f4c9c3b43acba5f26687c6c9a91d859689c7842546a59d620c762
|
3 |
+
size 56848909
|
2/triples.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3aee838236235e124df2d91c65aa77b07d16c323bafd70ae96acb8e0d0ab4c4
|
3 |
+
size 279378411
|
README.md
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators: []
|
3 |
+
language_creators: []
|
4 |
+
language:
|
5 |
+
- pl
|
6 |
+
- en
|
7 |
+
license:
|
8 |
+
- cc-by-sa-4.0
|
9 |
+
multilinguality:
|
10 |
+
- monolingual
|
11 |
+
- multilingual
|
12 |
+
size_categories: []
|
13 |
+
source_datasets:
|
14 |
+
- found
|
15 |
+
task_categories: []
|
16 |
+
task_ids: []
|
17 |
+
pretty_name: 'PUGG: KG for KBQA task in Polish'
|
18 |
+
tags:
|
19 |
+
- knowledge graph
|
20 |
+
- KBQA
|
21 |
+
- wikipedia
|
22 |
+
- wikidata
|
23 |
+
configs:
|
24 |
+
- config_name: 1H_triples
|
25 |
+
data_files:
|
26 |
+
- split: train
|
27 |
+
path: 1/triples.jsonl
|
28 |
+
- config_name: 1H_attributes
|
29 |
+
data_files:
|
30 |
+
- split: train
|
31 |
+
path: 1/attributes.jsonl
|
32 |
+
- config_name: 1H_labels_en
|
33 |
+
data_files:
|
34 |
+
- split: train
|
35 |
+
path: 1/labels_en.jsonl
|
36 |
+
- config_name: 1H_descriptions
|
37 |
+
data_files:
|
38 |
+
- split: train
|
39 |
+
path: 1/descriptions.jsonl
|
40 |
+
- config_name: 1H_aliases
|
41 |
+
data_files:
|
42 |
+
- split: train
|
43 |
+
path: 1/aliases.jsonl
|
44 |
+
- config_name: 1H_labels_pl
|
45 |
+
data_files:
|
46 |
+
- split: train
|
47 |
+
path: 1/labels_pl.jsonl
|
48 |
+
- config_name: 1H_times
|
49 |
+
data_files:
|
50 |
+
- split: train
|
51 |
+
path: 1/times.jsonl
|
52 |
+
- config_name: 2H_triples
|
53 |
+
data_files:
|
54 |
+
- split: train
|
55 |
+
path: 2/triples.jsonl
|
56 |
+
- config_name: 2H_attributes
|
57 |
+
data_files:
|
58 |
+
- split: train
|
59 |
+
path: 2/attributes.jsonl
|
60 |
+
- config_name: 2H_labels_en
|
61 |
+
data_files:
|
62 |
+
- split: train
|
63 |
+
path: 2/labels_en.jsonl
|
64 |
+
- config_name: 2H_descriptions
|
65 |
+
data_files:
|
66 |
+
- split: train
|
67 |
+
path: 2/descriptions.jsonl
|
68 |
+
- config_name: 2H_aliases
|
69 |
+
data_files:
|
70 |
+
- split: train
|
71 |
+
path: 2/aliases.jsonl
|
72 |
+
- config_name: 2H_labels_pl
|
73 |
+
data_files:
|
74 |
+
- split: train
|
75 |
+
path: 2/labels_pl.jsonl
|
76 |
+
- config_name: 2H_times
|
77 |
+
data_files:
|
78 |
+
- split: train
|
79 |
+
path: 2/times.jsonl
|
80 |
+
---
|
81 |
+
# PUGG: KBQA, MRC, IR Dataset for Polish
|
82 |
+
|
83 |
+
## Description
|
84 |
+
|
85 |
+
This repository contains the **knowledge graph** dedicated for
|
86 |
+
the KBQA (Knowledge Base Question Answering) task within the PUGG dataset. This repository does not
|
87 |
+
contain directly any task, but it provides the knowledge graph that can be used to solve the KBQA
|
88 |
+
task from the PUGG dataset.
|
89 |
+
|
90 |
+
|
91 |
+
### Graphs
|
92 |
+
|
93 |
+
We provide sampled versions of the knowledge graph based on Wikidata:
|
94 |
+
|
95 |
+
- **Wikidata1H**: A subgraph created by traversing 1 relation from each answer and topic entity.
|
96 |
+
- **Wikidata2H**: A subgraph created by traversing 2 relations from each answer and topic entity.
|
97 |
+
|
98 |
+
[//]: # (- **WikidataFull**: The complete knowledge graph.)
|
99 |
+
|
100 |
+
### How We Created the Graphs
|
101 |
+
|
102 |
+
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)).
|
103 |
+
2. We collected all answer and topic entities from the PUGG dataset.
|
104 |
+
3. We traversed the graph from each answer and topic entity for *n* hops.
|
105 |
+
4. We filtered out entities that do not have labels in Polish.
|
106 |
+
5. We saved the subgraphs in various structures:
|
107 |
+
* triples
|
108 |
+
* labels_pl
|
109 |
+
* labels_en
|
110 |
+
* aliases (Polish)
|
111 |
+
* descriptions (Polish)
|
112 |
+
* attributes
|
113 |
+
* times
|
114 |
+
|
115 |
+
See [Usage](#usage) for more information on how to load the graphs.
|
116 |
+
|
117 |
+
## Paper
|
118 |
+
|
119 |
+
For more detailed information, please refer to our research paper titled:
|
120 |
+
|
121 |
+
**"Developing PUGG for Polish: A Modern Approach to KBQA, MRC, and IR Dataset Construction"**
|
122 |
+
|
123 |
+
Authored by:
|
124 |
+
* Albert Sawczyn
|
125 |
+
* Katsiaryna Viarenich
|
126 |
+
* Konrad Wojtasik
|
127 |
+
* Aleksandra Domogała
|
128 |
+
* Marcin Oleksy
|
129 |
+
* Maciej Piasecki
|
130 |
+
* Tomasz Kajdanowicz
|
131 |
+
|
132 |
+
The paper was accepted for ACL 2024 (findings).
|
133 |
+
|
134 |
+
## Repositories
|
135 |
+
|
136 |
+
The PUGG dataset is available in the following repositories:
|
137 |
+
|
138 |
+
* [General](https://huggingface.co/datasets/clarin-pl/PUGG_KBQA) - contains all tasks (KBQA, MRC, IR)
|
139 |
+
|
140 |
+
For more straightforward usage, the tasks are also available in separate repositories:
|
141 |
+
|
142 |
+
* [KBQA](https://huggingface.co/datasets/clarin-pl/PUGG_KBQA)
|
143 |
+
* [MRC](https://huggingface.co/datasets/clarin-pl/PUGG_MRC)
|
144 |
+
* [IR](https://huggingface.co/datasets/clarin-pl/PUGG_IR)
|
145 |
+
|
146 |
+
The knowledge graph for KBQA task is available in the following repository:
|
147 |
+
|
148 |
+
* [Knowledge Graph](https://huggingface.co/datasets/clarin-pl/PUGG_KG) (this repository)
|
149 |
+
|
150 |
+
|
151 |
+
## Links
|
152 |
+
|
153 |
+
* Code:
|
154 |
+
* [Github](https://github.com/CLARIN-PL/PUGG)
|
155 |
+
* Paper:
|
156 |
+
* ACL - TBA
|
157 |
+
* Arxiv - TBA
|
158 |
+
|
159 |
+
## Usage
|
160 |
+
|
161 |
+
```python
|
162 |
+
from datasets import load_dataset
|
163 |
+
|
164 |
+
dataset_1H_triples = load_dataset("clarin-pl/PUGG_KG", '1H_triples')
|
165 |
+
print(dataset_1H_triples)
|
166 |
+
|
167 |
+
dataset_1H_labels_pl = load_dataset("clarin-pl/PUGG_KG", '1H_labels_pl')
|
168 |
+
print(dataset_1H_labels_pl)
|
169 |
+
|
170 |
+
dataset_1H_labels_en = load_dataset("clarin-pl/PUGG_KG", '1H_labels_en')
|
171 |
+
print(dataset_1H_labels_en)
|
172 |
+
|
173 |
+
dataset_1H_aliases = load_dataset("clarin-pl/PUGG_KG", '1H_aliases')
|
174 |
+
print(dataset_1H_aliases)
|
175 |
+
|
176 |
+
dataset_1H_descriptions = load_dataset("clarin-pl/PUGG_KG", '1H_descriptions')
|
177 |
+
print(dataset_1H_descriptions)
|
178 |
+
|
179 |
+
dataset_1H_attributes = load_dataset("clarin-pl/PUGG_KG", '1H_attributes')
|
180 |
+
print(dataset_1H_attributes)
|
181 |
+
|
182 |
+
dataset_1H_times = load_dataset("clarin-pl/PUGG_KG", '1H_times')
|
183 |
+
print(dataset_1H_times)
|
184 |
+
|
185 |
+
dataset_2H_triples = load_dataset("clarin-pl/PUGG_KG", '2H_triples')
|
186 |
+
print(dataset_2H_triples)
|
187 |
+
|
188 |
+
dataset_2H_labels_pl = load_dataset("clarin-pl/PUGG_KG", '2H_labels_pl')
|
189 |
+
print(dataset_2H_labels_pl)
|
190 |
+
|
191 |
+
dataset_2H_labels_en = load_dataset("clarin-pl/PUGG_KG", '2H_labels_en')
|
192 |
+
print(dataset_2H_labels_en)
|
193 |
+
|
194 |
+
dataset_2H_aliases = load_dataset("clarin-pl/PUGG_KG", '2H_aliases')
|
195 |
+
print(dataset_2H_aliases)
|
196 |
+
|
197 |
+
dataset_2H_descriptions = load_dataset("clarin-pl/PUGG_KG", '2H_descriptions')
|
198 |
+
print(dataset_2H_descriptions)
|
199 |
+
|
200 |
+
dataset_2H_attributes = load_dataset("clarin-pl/PUGG_KG", '2H_attributes')
|
201 |
+
print(dataset_2H_attributes)
|
202 |
+
|
203 |
+
dataset_2H_times = load_dataset("clarin-pl/PUGG_KG", '2H_times')
|
204 |
+
print(dataset_2H_times)
|
205 |
+
```
|
206 |
+
|
207 |
+
|
208 |
+
## Citation
|
209 |
+
|
210 |
+
TBA
|
211 |
+
|
212 |
+
## Contact
|
213 |
+
|
214 |