Datasets:
Tasks:
Question Answering
Modalities:
Text
Formats:
parquet
Sub-tasks:
extractive-qa
Languages:
Polish
Size:
1K - 10K
Add dataset card
Browse files
README.md
CHANGED
|
@@ -1,4 +1,28 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
- name: question
|
|
@@ -8,13 +32,13 @@ dataset_info:
|
|
| 8 |
- name: is_impossible
|
| 9 |
dtype: bool
|
| 10 |
- name: answers
|
| 11 |
-
|
| 12 |
-
- name: answer_end
|
| 13 |
-
sequence: int64
|
| 14 |
- name: answer_start
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
- name: text
|
| 17 |
-
|
| 18 |
- name: context
|
| 19 |
dtype: string
|
| 20 |
- name: dataset
|
|
@@ -23,26 +47,81 @@ dataset_info:
|
|
| 23 |
dtype: int64
|
| 24 |
splits:
|
| 25 |
- name: train
|
| 26 |
-
num_bytes: 12968910
|
| 27 |
num_examples: 7563
|
| 28 |
- name: validation
|
| 29 |
-
num_bytes: 3141286
|
| 30 |
num_examples: 1878
|
| 31 |
-
download_size: 0
|
| 32 |
-
dataset_size: 16110196
|
| 33 |
-
configs:
|
| 34 |
-
- config_name: default
|
| 35 |
-
data_files:
|
| 36 |
-
- split: train
|
| 37 |
-
path: data/train-*
|
| 38 |
-
- split: validation
|
| 39 |
-
path: data/validation-*
|
| 40 |
---
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
```python
|
| 44 |
from datasets import load_dataset
|
| 45 |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- pl
|
| 4 |
+
task_categories:
|
| 5 |
+
- question-answering
|
| 6 |
+
task_ids:
|
| 7 |
+
- extractive-qa
|
| 8 |
+
pretty_name: QA-KPWr (Polish)
|
| 9 |
+
size_categories:
|
| 10 |
+
- 1K<n<10K
|
| 11 |
+
tags:
|
| 12 |
+
- polish
|
| 13 |
+
- kpwr
|
| 14 |
+
- squad
|
| 15 |
+
- extractive-question-answering
|
| 16 |
+
- paraphrase
|
| 17 |
+
- unanswerable
|
| 18 |
+
source_datasets:
|
| 19 |
+
- extended|kpwr
|
| 20 |
+
multilinguality:
|
| 21 |
+
- monolingual
|
| 22 |
+
annotations_creators:
|
| 23 |
+
- expert-generated
|
| 24 |
+
language_creators:
|
| 25 |
+
- found
|
| 26 |
dataset_info:
|
| 27 |
features:
|
| 28 |
- name: question
|
|
|
|
| 32 |
- name: is_impossible
|
| 33 |
dtype: bool
|
| 34 |
- name: answers
|
| 35 |
+
sequence:
|
|
|
|
|
|
|
| 36 |
- name: answer_start
|
| 37 |
+
dtype: int64
|
| 38 |
+
- name: answer_end
|
| 39 |
+
dtype: int64
|
| 40 |
- name: text
|
| 41 |
+
dtype: string
|
| 42 |
- name: context
|
| 43 |
dtype: string
|
| 44 |
- name: dataset
|
|
|
|
| 47 |
dtype: int64
|
| 48 |
splits:
|
| 49 |
- name: train
|
|
|
|
| 50 |
num_examples: 7563
|
| 51 |
- name: validation
|
|
|
|
| 52 |
num_examples: 1878
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
---
|
| 54 |
+
|
| 55 |
+
# QA-KPWr
|
| 56 |
+
|
| 57 |
+
Polish extractive question answering dataset built on passages from the Polish Corpus of Wrocław University of Technology (*Korpus Języka Polskiego Politechniki Wrocławskiej*, KPWr). Each example pairs a question with a context paragraph drawn from KPWr, optional answer spans, and flags indicating whether the question is a paraphrase of another item and whether it is unanswerable from the provided context.
|
| 58 |
+
|
| 59 |
+
## Dataset summary
|
| 60 |
+
|
| 61 |
+
| Split | Examples |
|
| 62 |
+
|------------|---------:|
|
| 63 |
+
| train | 7,563 |
|
| 64 |
+
| validation | 1,878 |
|
| 65 |
+
|
| 66 |
+
- **Language**: Polish (`pl`)
|
| 67 |
+
- **Task**: Extractive question answering (SQuAD 2.0-style, with unanswerable questions)
|
| 68 |
+
- **Domain**: KPWr - mixed-domain, mixed-genre Polish texts
|
| 69 |
+
- **Format**: One row per (question, context) pair
|
| 70 |
+
|
| 71 |
+
## Features
|
| 72 |
+
|
| 73 |
+
| Field | Type | Notes |
|
| 74 |
+
|-----------------|-----------------------------------------------------|-----------------------------------------------------------------------|
|
| 75 |
+
| `question` | `string` | Question text in Polish |
|
| 76 |
+
| `context` | `string` | KPWr passage that may contain the answer |
|
| 77 |
+
| `answers` | `{answer_start: int[], answer_end: int[], text: str[]}` | Character-level answer span(s); `null` when `is_impossible` is true |
|
| 78 |
+
| `is_impossible` | `bool` | `true` if the question cannot be answered from `context` |
|
| 79 |
+
| `is_paraphrase` | `bool` | `true` if the item is a paraphrase of another question for the same context |
|
| 80 |
+
| `dataset` | `string` | Source identifier (`KPWR`) |
|
| 81 |
+
| `context_id` | `int64` | Identifier shared by all questions on the same context |
|
| 82 |
+
|
| 83 |
+
## Loading
|
| 84 |
|
| 85 |
```python
|
| 86 |
from datasets import load_dataset
|
| 87 |
|
| 88 |
+
ds = load_dataset("expansio/qa-kpwr")
|
| 89 |
+
print(ds)
|
| 90 |
+
print(ds["train"][0])
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
## Evaluation
|
| 94 |
+
|
| 95 |
+
The dataset is evaluated with the SQuAD 2.0 metric family:
|
| 96 |
+
|
| 97 |
+
- `exact` / `f1` — overall scores
|
| 98 |
+
- `HasAns_exact` / `HasAns_f1` — restricted to answerable questions
|
| 99 |
+
- `NoAns_f1` — accuracy on questions flagged as unanswerable
|
| 100 |
+
|
| 101 |
+
## License
|
| 102 |
+
|
| 103 |
+
TBD. Source passages come from KPWr, originally distributed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/); attribution must be preserved on redistribution. The final license for this redistribution will be specified before publication.
|
| 104 |
+
|
| 105 |
+
## Citation
|
| 106 |
+
|
| 107 |
+
If you use this dataset, please cite the LEPISZCZE benchmark and the source corpus.
|
| 108 |
+
|
| 109 |
+
```bibtex
|
| 110 |
+
@inproceedings{augustyniak2022lepiszcze,
|
| 111 |
+
title = {This is the way: designing and compiling LEPISZCZE, a comprehensive NLP benchmark for Polish},
|
| 112 |
+
author = {Augustyniak, {\L}ukasz and Tagowski, Kamil and Sawczyn, Albert and Janiak, Denis and Bartusiak, Roman and W{\k{a}}troba, Patryk and Mr{\'o}z, Krzysztof and Walczak, Bart{\l}omiej and Smywi{\'n}ski-Pohl, Aleksander and Mizgajski, Jan and Augustyniak, Piotr and Kajdanowicz, Tomasz},
|
| 113 |
+
booktitle = {Advances in Neural Information Processing Systems 35 (NeurIPS 2022) Datasets and Benchmarks Track},
|
| 114 |
+
year = {2022}
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
@inproceedings{broda-etal-2012-kpwr,
|
| 118 |
+
title = {{KPW}r: Towards a Free Corpus of {P}olish},
|
| 119 |
+
author = {Broda, Bartosz and Marci{\'n}czuk, Micha{\l} and Maziarz, Marek and Radziszewski, Adam and Wardy{\'n}ski, Adam},
|
| 120 |
+
booktitle = {Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC'12)},
|
| 121 |
+
year = {2012}
|
| 122 |
+
}
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
## Maintainer
|
| 126 |
+
|
| 127 |
+
[Expansio Software House](https://expans.io) in collaboration with [CLARIN-PL](https://clarin-pl.eu/).
|