mrshu commited on
Commit
df4b3e7
·
verified ·
1 Parent(s): e14b0ce

Dataset card and data licence: authors, versions, rules, baselines, citation

Browse files
Files changed (2) hide show
  1. LICENSE-DATA.md +4 -3
  2. 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 © TODO(authors), CC BY 4.0.
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". A GDPR/legal-basis statement and a takedown contact are
39
- human-author decisions (docs/submission-checklist.md).
 
 
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, 2014–2026) paired with their official Commission/Council
67
- answers, released as an IR test collection. Code and full documentation:
68
- https://github.com/NaiveNeuron/ParlIR-ecir-2027 (private until the authors release it).
 
 
 
 
 
69
 
70
  ## Tasks
71
 
72
- All tasks have qrels files `qrels/<task>_<split>.tsv` (splits `train`, `dev`, `test`). PrecedentRet and AnswerRet
73
- are the co-headline tasks.
74
-
75
- - **AnswerRet** (`answer`, config `qrels-answer`): retrieve the official answer to a question from the full answer
76
- corpus; binary known-item qrels; primary metric MRR@10.
77
- - **Lenient AnswerRet** (`answerlenient`): the official answer (rel 2) plus typed equivalent answers (rel 1):
78
- `twin_question`, `duplicate_answer`, `near_duplicate_answer` (listed in `equivalents.jsonl`).
79
- - **PrecedentRet** (`precedent`, config `qrels-precedent`; *which earlier answers will its reply cite?*): retrieve earlier
80
- answers that the official answer explicitly cross-references; eligible = answers published before the question
81
- date (pre-submission, as-of ranking); metric: known-citation recall (R@10, R@100). `precedenthc` (config
82
- `qrels-precedenthc`) is the referral-phrased subset.
83
- - **CiteRet** (`cite`, config `qrels-cite`; drafting-time variant): the same citation edges, eligible = answers
84
- published before the official reply's date. `citehc` is the referral-phrased subset.
85
-
86
- **Example (test).** Question `P-9-2024-000684` (4 Mar 2024, asbestos screening proposal): its official reply
87
- `P-9-2024-000684-ASW` is a referral stub ("…would refer the Honourable Member to its answer to written question
88
- [REF]"), which is the AnswerRet target. The answer it cites, `E-9-2023-003699-ASW` (12 Mar 2024), is the CiteRet
89
- target; it is eligible at drafting time (before the reply) but not in PrecedentRet, the pre-submission task (after the question).
90
-
91
- ## Files
92
-
93
- All files of a release live under `<version>/` (this card: `v1.0/`). Version tags are readable labels; pin downloads
94
- to the full commit hash, because tags can be deleted and recreated: `v1.0` (data) =
95
- `2176502d8ed76885c17fc85604be33d2cf429368`, `v1.0-textonly` = `925a8807a3b471beac0dc376826b2e0a086b0bc4`,
96
- `v1.0-evidence-r5` = `6b381010ef7b07927b30bd4c35bbb1d416f68baf`. The **evidence supplement** (every run with
97
- per-query metrics and meta, all LLM-audit records including the extended audit and pools, and the fine-tuned
98
- bi-encoder weights) is under `v1.0/experiments/` at `v1.0-evidence-r5` (earlier evidence tags lack later post-hoc runs and audit extensions: random-negative models, Qwen3, dense question→question, all-periods zero-shot runs). Embedding caches are not included; the pipeline rebuilds them.
99
-
100
- - `corpus.jsonl`: `_id` (`<QID>-ASW`), `text` (masked, canonical), `raw_text` (header-stripped, unmasked),
101
- `date`, `institution`, `answers` (question ids), `header`, `source_url`.
102
- - `queries.jsonl`: `_id`, `subject`, `text` (masked subject + body), `raw_text`, `date`, `source_url`, `type`
103
- (E/P), `term`, `addressee`, `author`, `orig_lang`, `orig_lang_src` (`csv`/`detail`), `answer`, `header`, `split`
104
- (train/dev/test/null), `joint_size`.
105
- - `queries_xling.jsonl`: official non-English versions of questions: `_id`, `lang`, `text` (masked), `raw_text`.
106
- - `equivalents.jsonl`: `qid`, `equivalent_answers` (list of `{doc, type}`).
107
- - `precedent_meta.jsonl`: per query, citation edges (`cited`, `answer`, provenance `via` ⊆ {`hyperlink`, `url`,
108
- `text`}, `referral` flag), with the eligible answers under the pre-submission and drafting cutoffs.
109
- - `qrels/<task>_<split>.tsv` for `answer`, `answerlenient`, `cite`, `citehc`, `precedent`, `precedenthc`: TREC
110
- format `qid 0 docid rel` (whitespace-separated, no header), for `trec_eval`/`ir_measures`.
111
- - `qrels_jsonl/<task>_<split>.jsonl`: the same qrels as JSONL (`query_id`, `iteration`, `doc_id`, `relevance`);
112
- these back the `qrels-*` dataset configs.
113
- - `build_manifest.json`: counts and sha256 checksums.
114
- - LLM pooled-audit pools (sensitivity analysis only; reproducible from the sample seed and the runs).
115
-
116
- **Masking.** Headers are removed structurally; every question/answer identifier in the masker's forms (including
117
- URL-embedded ids, hyphen variants, ids glued to a language code, and typo forms) is replaced by `[REF]`; term-8
118
- PE-number footers and co-signatory/supporter lines are removed. The validator checks for identifiers independently
119
- of the masker. Known v1.0 residue (to be fixed in the next release): rarer spellings survive in 255 queries (5 in test) and 48
120
- answers, none naming a dev/test citation target; `subject`, `header` and `raw_text` are unmasked (datasheet, "Known
121
- issues in v1.0").
122
-
123
- **Permitted inputs.** Systems may use only the `text` fields. Ids, dates, `header`, `subject`, `raw_text`,
124
- `source_url`, `answers` and the queries' `answer` field are forbidden: answer ids reuse the question id (that rule
125
- alone scores MRR@10 0.989) and a 0–180-day date window lifts BM25 from 0.547 to 0.760. At test time, dates may be used
126
- only for the as-of filters of the citation tasks; training may use training-split metadata (two post-hoc recipes
127
- select negatives by date).
128
-
129
- **Citation-task allowance.** For `precedent*` and `cite*`, a system may also use the archive's question→answer links
130
- of *eligible* answers (dated before the query's cutoff) and those earlier questions' `text`; the query's own `answer`
131
- link and anything after its cutoff stay forbidden (the as-of filter enforces the dates). Only the question→question
132
- baselines use this; all other baselines rank answer texts only. The text-only export does not contain these links,
133
- so question→question baselines cannot be rerun from it (use the v1.0 data, commit
134
- `2176502d8ed76885c17fc85604be33d2cf429368`).
135
-
136
- **Safe default for evaluation: the text-only export** (tag `v1.0-textonly`, `v1.0/textonly/`): corpus and queries with
137
- only a random opaque `_id` and the masked `text`; qrels on opaque ids; evaluator-only date files for the as-of rule in
138
- `eval/`; the opaque→source mapping as a separate download (`v1.0/textonly-provenance/`). Every main-experiment run scores
139
- identically on it.
140
-
141
- **Baseline protocol caveat.** Fine-tuning on the training split with BM25 hard negatives mined across the whole
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
- PrecedentRet test has 301 queries (CiteRet 396), below the pre-registered 500 (H6 not met); report confidence
170
- intervals.
171
 
172
- ## Licence and attribution
173
 
174
- Source data: European Parliament Open Data Portal, © European Union, CC BY 4.0; Commission answers under
175
- Decision 2011/833/EU (CC BY 4.0 via C(2019) 1655); Council answers under Decision (EU) 2017/1842. Texts were
176
- modified (header removal, identifier masking). ParlIR annotations: CC BY 4.0. Author names are MEPs acting in
177
- an official capacity; they are metadata only and not part of the retrieval text.
 
178
 
179
  ## Citation
180
 
181
  ```bibtex
182
- @inproceedings{parlir2027,
183
- title = {ParlIR: TODO(authors)},
184
- author = {TODO(authors)},
185
- booktitle = {Advances in Information Retrieval (ECIR 2027)},
186
- year = {2027}
 
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
  ```