Datasets:
Dataset card and data licence: authors, versions, rules, baselines, citation
Browse files- LICENSE-DATA.md +4 -3
- README.md +94 -106
LICENSE-DATA.md
CHANGED
|
@@ -27,7 +27,7 @@ Please include the following when redistributing ParlIR data or derivatives:
|
|
| 27 |
> Contains European Parliament written questions and official answers. Source: European Parliament Open Data
|
| 28 |
> Portal (data.europarl.europa.eu), © European Union, 2014–2026, CC BY 4.0. Commission answers reused under
|
| 29 |
> Decision 2011/833/EU (CC BY 4.0); Council answers reused under Decision (EU) 2017/1842. Texts were modified
|
| 30 |
-
> (header removal, identifier masking). ParlIR annotations ©
|
| 31 |
|
| 32 |
## Personal data
|
| 33 |
|
|
@@ -35,5 +35,6 @@ Author names are those of Members of the European Parliament acting in their off
|
|
| 35 |
the Parliament. They are kept as metadata and removed from the canonical retrieval text where they appear in
|
| 36 |
headers and co-signatory lines; residual mentions remain (e.g. 12 train queries with a "Question supported by …"
|
| 37 |
list, and MEPs or other public figures named in question/answer content). `subject`, `header` and `raw_text` are
|
| 38 |
-
unmasked. See docs/datasheet.md "Known issues in v1.0".
|
| 39 |
-
|
|
|
|
|
|
| 27 |
> Contains European Parliament written questions and official answers. Source: European Parliament Open Data
|
| 28 |
> Portal (data.europarl.europa.eu), © European Union, 2014–2026, CC BY 4.0. Commission answers reused under
|
| 29 |
> Decision 2011/833/EU (CC BY 4.0); Council answers reused under Decision (EU) 2017/1842. Texts were modified
|
| 30 |
+
> (header removal, identifier masking). ParlIR annotations © 2026 Marek Šuppa and Viktória Ondrejová, CC BY 4.0.
|
| 31 |
|
| 32 |
## Personal data
|
| 33 |
|
|
|
|
| 35 |
the Parliament. They are kept as metadata and removed from the canonical retrieval text where they appear in
|
| 36 |
headers and co-signatory lines; residual mentions remain (e.g. 12 train queries with a "Question supported by …"
|
| 37 |
list, and MEPs or other public figures named in question/answer content). `subject`, `header` and `raw_text` are
|
| 38 |
+
unmasked. See docs/datasheet.md "Known issues in v1.0". Removal requests concerning personal data can be filed on
|
| 39 |
+
the code repository's issue tracker (https://github.com/NaiveNeuron/ParlIR-ecir-2027/issues). They take effect in
|
| 40 |
+
the next release.
|
README.md
CHANGED
|
@@ -63,126 +63,114 @@ configs:
|
|
| 63 |
|
| 64 |
# ParlIR
|
| 65 |
|
| 66 |
-
European Parliament written questions (terms 8–10,
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
## Tasks
|
| 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 |
-
archive (the pre-registered protocol) hurts (MRR@10 0.424 ± 0.008 over 3 seeds vs 0.490 zero-shot). Post-hoc
|
| 143 |
-
controls (3 seeds each): random negatives 0.669 ± 0.012, random negatives within ±365 days 0.712 ± 0.003, date-matched BM25
|
| 144 |
-
negatives 0.637 (3 seeds). Why is not established; plausibly many mined negatives are relevant answers the qrels miss
|
| 145 |
-
(LLM-judged test-query proxy: 18% "directly addresses", 51% "partially"), plus a date signal. Avoid naive
|
| 146 |
-
hard-negative mining here; these results are post hoc, to be confirmed on the next test period. Best pre-registered baseline: RRF(BM25, BGE-M3), 0.588.
|
| 147 |
-
Post-hoc zero-shot baseline: Qwen3-Embedding-8B (2025) reaches 0.714, with the same gain over BM25 (+0.17) on test
|
| 148 |
-
questions answered after the model's release as before it. PrecedentRet test R@10: BM25 0.534, BGE-M3 0.585,
|
| 149 |
-
Qwen3-Embedding-8B 0.632, BM25 question→question 0.712, BGE-M3 question→question 0.725. For CiteRet, dense
|
| 150 |
-
question→question retrieval (BGE-M3) reaches R@10 0.744, on par with BM25 question→question (0.724).
|
| 151 |
-
|
| 152 |
-
Splits are temporal (train 2014–2021, dev 2022–2023, test 2024–2026); 2015 questions are dated from their XML
|
| 153 |
-
header.
|
| 154 |
-
|
| 155 |
-
**Counts (v1.0).** Corpus 76,536 answers (Commission 70,397, VP/HR 4,181, Council 1,892, unknown 66); 78,314
|
| 156 |
-
queries = 78,309 split-assigned (train 59,612, dev 7,735, test 10,962) plus 5 unsplit; `queries_xling.jsonl` 7,683 texts in 22 languages;
|
| 157 |
-
equivalent answers for 1,396 queries (twin_question 419, duplicate_answer 852, near_duplicate_answer 296).
|
| 158 |
-
Qrels (queries / pairs):
|
| 159 |
-
|
| 160 |
-
| Task | train | dev | test |
|
| 161 |
|---|---|---|---|
|
| 162 |
| `answer` | 59,612 / 59,612 | 7,735 / 7,735 | 10,962 / 10,962 |
|
| 163 |
| `answerlenient` | 59,612 / 70,463 | 7,735 / 7,854 | 10,962 / 11,239 |
|
| 164 |
-
| `cite` | 3,767 / 5,592 | 299 / 441 | 396 / 634 |
|
| 165 |
-
| `citehc` | 2,991 / 4,199 | 186 / 245 | 256 / 352 |
|
| 166 |
| `precedent` | 2,302 / 3,393 | 252 / 364 | 301 / 481 |
|
| 167 |
| `precedenthc` | 1,788 / 2,462 | 159 / 208 | 192 / 269 |
|
|
|
|
|
|
|
| 168 |
|
| 169 |
-
|
| 170 |
-
|
| 171 |
|
| 172 |
-
## Licence
|
| 173 |
|
| 174 |
-
Source
|
| 175 |
-
Decision 2011/833/EU (CC BY 4.0 via C(2019) 1655)
|
| 176 |
-
modified (
|
| 177 |
-
|
|
|
|
| 178 |
|
| 179 |
## Citation
|
| 180 |
|
| 181 |
```bibtex
|
| 182 |
-
@
|
| 183 |
-
title
|
| 184 |
-
author
|
| 185 |
-
|
| 186 |
-
|
|
|
|
| 187 |
}
|
| 188 |
```
|
|
|
|
| 63 |
|
| 64 |
# ParlIR
|
| 65 |
|
| 66 |
+
ParlIR is a test collection built from European Parliament written questions (parliamentary terms 8–10,
|
| 67 |
+
July 2014 – October 2026) and the official answers of the Commission, the High Representative and the Council.
|
| 68 |
+
Relevance comes from the institutions' own links: each question is linked to its reply, and replies cite earlier
|
| 69 |
+
answers. The qrels come from these records, and a sample of the referral citations was checked by a human.
|
| 70 |
+
|
| 71 |
+
- Paper: *ParlIR: A Test Collection for Answer and Precedent Retrieval from European Parliament Written Questions*
|
| 72 |
+
(Marek Šuppa and Viktória Ondrejová, under review)
|
| 73 |
+
- Code, pipeline, tutorial and datasheet: https://github.com/NaiveNeuron/ParlIR-ecir-2027
|
| 74 |
|
| 75 |
## Tasks
|
| 76 |
|
| 77 |
+
| Task | Query | Relevant documents | Metric |
|
| 78 |
+
|---|---|---|---|
|
| 79 |
+
| **AnswerRet** (`answer`) | a question | its official reply, among all 76,536 answers | MRR@10 |
|
| 80 |
+
| **PrecedentRet** (`precedent`) | a new question | the earlier answers its reply cites, among answers published before the question | R@10, R@100 |
|
| 81 |
+
| CiteRet (`cite`) | a question | the same citations, among answers published before the reply | R@10, R@100 |
|
| 82 |
+
|
| 83 |
+
`precedenthc` and `citehc` keep only referral citations ("…refers the Honourable Member to its answer to…").
|
| 84 |
+
`answerlenient` also accepts answers that are equivalent to the official one (`equivalents.jsonl`). Splits are
|
| 85 |
+
by question date: train 2014–2021, dev 2022–2023, test 2024–2026.
|
| 86 |
+
|
| 87 |
+
## Versions
|
| 88 |
+
|
| 89 |
+
Pin downloads to the commit hash. Tags are readable labels, and the hash identifies the snapshot.
|
| 90 |
+
|
| 91 |
+
| Tag | Contents | Commit |
|
| 92 |
+
|---|---|---|
|
| 93 |
+
| `v1.0` | data and qrels (`v1.0/`) | `2176502d8ed76885c17fc85604be33d2cf429368` |
|
| 94 |
+
| `v1.0-textonly` | text-only evaluation export (`v1.0/textonly/`) | `925a8807a3b471beac0dc376826b2e0a086b0bc4` |
|
| 95 |
+
| `v1.0-evidence-r5` | all runs, per-query metrics, audit records, fine-tuned weights (`v1.0/experiments/`, about 21 GB) | `6b381010ef7b07927b30bd4c35bbb1d416f68baf` |
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
from datasets import load_dataset
|
| 99 |
+
corpus = load_dataset("NaiveNeuron/parlir", "corpus", revision="2176502d8ed76885c17fc85604be33d2cf429368")
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
## Files (`v1.0/`)
|
| 103 |
+
|
| 104 |
+
- `corpus.jsonl`: `_id` (`<QID>-ASW`), `text` (masked, use this), `raw_text` (unmasked), `date`, `institution`,
|
| 105 |
+
`answers`, `header`, `source_url`
|
| 106 |
+
- `queries.jsonl`: `_id`, `subject`, `text` (masked, use this), `raw_text`, `date`, `source_url`, `type` (E/P),
|
| 107 |
+
`term`, `addressee`, `author`, `orig_lang`, `orig_lang_src`, `answer`, `header`, `split`, `joint_size`
|
| 108 |
+
- `queries_xling.jsonl`: the official non-English versions of questions (7,683 texts, 22 languages)
|
| 109 |
+
- `equivalents.jsonl`: equivalent answers per query (`twin_question`, `duplicate_answer`, `near_duplicate_answer`)
|
| 110 |
+
- `precedent_meta.jsonl`: citation edges per query, with their source (`hyperlink`, `url`, `text`) and a
|
| 111 |
+
`referral` flag
|
| 112 |
+
- `qrels/<task>_<split>.tsv`: TREC qrels (`qid 0 docid rel`), and `qrels_jsonl/` with the same qrels as JSONL
|
| 113 |
+
- `build_manifest.json`: counts and SHA-256 checksums
|
| 114 |
+
|
| 115 |
+
## Rules for systems
|
| 116 |
+
|
| 117 |
+
Systems may use only the `text` fields. Do not use ids, dates, `header`, `subject`, `raw_text`, `source_url`,
|
| 118 |
+
`answers` or the `answer` field as retrieval features, because some reveal the answer and others give shortcuts.
|
| 119 |
+
An answer's id is its question's id plus `-ASW` (matching ids alone scores MRR@10 0.989), and a date window lifts
|
| 120 |
+
BM25 from 0.547 to 0.760. Dates are used
|
| 121 |
+
only by the evaluator's as-of filter for the citation tasks. For those tasks, systems may also use the links from
|
| 122 |
+
earlier eligible answers to the questions they replied to, as the question-matching baselines do.
|
| 123 |
+
|
| 124 |
+
The text-only export (`v1.0-textonly`) is the safest choice for evaluation. Corpus and queries carry only a random
|
| 125 |
+
id and the masked text, the dates sit in evaluator-only files, and the id mapping is a separate download. All
|
| 126 |
+
stored main-experiment runs score the same on it. It omits the links that question matching needs.
|
| 127 |
+
|
| 128 |
+
## Baselines (test split)
|
| 129 |
+
|
| 130 |
+
| System | AnswerRet MRR@10 | PrecedentRet R@10 |
|
| 131 |
+
|---|---|---|
|
| 132 |
+
| BM25 | 0.547 | 0.534 |
|
| 133 |
+
| BGE-M3 | 0.525 | 0.585 |
|
| 134 |
+
| Qwen3-Embedding-8B (zero-shot) | 0.714 | 0.632 |
|
| 135 |
+
| BM25 question matching | n/a | 0.712 |
|
| 136 |
+
| BGE-M3 question matching | n/a | 0.725 |
|
| 137 |
+
|
| 138 |
+
PrecedentRet has 301 test queries, so please report confidence intervals. More results, including fusion,
|
| 139 |
+
re-ranking, fine-tuning and a label audit with LLM judges, are in the paper and the evidence supplement.
|
| 140 |
+
|
| 141 |
+
## Counts (v1.0)
|
| 142 |
+
|
| 143 |
+
76,536 answers (Commission 70,397, High Representative 4,181, Council 1,892, unknown 66) and 78,309 questions with a
|
| 144 |
+
split (train 59,612, dev 7,735, test 10,962).
|
| 145 |
+
|
| 146 |
+
| Task | train (queries / pairs) | dev | test |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
|---|---|---|---|
|
| 148 |
| `answer` | 59,612 / 59,612 | 7,735 / 7,735 | 10,962 / 10,962 |
|
| 149 |
| `answerlenient` | 59,612 / 70,463 | 7,735 / 7,854 | 10,962 / 11,239 |
|
|
|
|
|
|
|
| 150 |
| `precedent` | 2,302 / 3,393 | 252 / 364 | 301 / 481 |
|
| 151 |
| `precedenthc` | 1,788 / 2,462 | 159 / 208 | 192 / 269 |
|
| 152 |
+
| `cite` | 3,767 / 5,592 | 299 / 441 | 396 / 634 |
|
| 153 |
+
| `citehc` | 2,991 / 4,199 | 186 / 245 | 256 / 352 |
|
| 154 |
|
| 155 |
+
Known issues of v1.0 (rare unmasked identifier spellings, a few odd dates) are listed in the datasheet. v1.0 stays
|
| 156 |
+
frozen, and fixes go into the next release.
|
| 157 |
|
| 158 |
+
## Licence
|
| 159 |
|
| 160 |
+
Source texts: European Parliament Open Data Portal, © European Union, CC BY 4.0. Commission answers are reused
|
| 161 |
+
under Decision 2011/833/EU (CC BY 4.0 via C(2019) 1655), Council answers under Decision (EU) 2017/1842. The texts
|
| 162 |
+
were modified (headers removed, identifiers masked). ParlIR annotations: CC BY 4.0. See `LICENSE-DATA.md`.
|
| 163 |
+
Questions are signed by MEPs acting as public office-holders. Removal requests can be filed on the code
|
| 164 |
+
repository's issue tracker.
|
| 165 |
|
| 166 |
## Citation
|
| 167 |
|
| 168 |
```bibtex
|
| 169 |
+
@misc{suppa2026parlir,
|
| 170 |
+
title = {{ParlIR}: A Test Collection for Answer and Precedent Retrieval from {European Parliament} Written Questions},
|
| 171 |
+
author = {{\v{S}}uppa, Marek and Ondrejov{\'a}, Vikt{\'o}ria},
|
| 172 |
+
year = {2026},
|
| 173 |
+
note = {Dataset: https://huggingface.co/datasets/NaiveNeuron/parlir},
|
| 174 |
+
url = {https://github.com/NaiveNeuron/ParlIR-ecir-2027}
|
| 175 |
}
|
| 176 |
```
|