mpkato commited on
Commit
1a33892
·
verified ·
1 Parent(s): 2056548

docs: rewrite data card to follow HF official template

Browse files
Files changed (1) hide show
  1. README.md +304 -287
README.md CHANGED
@@ -1,15 +1,12 @@
1
  ---
2
- license:
3
- - cc-by-4.0
4
- - cc0-1.0
5
  language:
6
  - en
7
  - ja
8
- task_categories:
9
- - text-retrieval
10
- pretty_name: ReCaRe — A Bilingual Legal Benchmark for Revision Candidate Retrieval
11
- size_categories:
12
- - 100K<n<1M
13
  tags:
14
  - legal
15
  - law
@@ -17,11 +14,19 @@ tags:
17
  - bilingual
18
  - retrieval
19
  - benchmark
20
- - bm25
21
- - dense-retrieval
22
- - cross-lingual
23
  - eu-law
24
  - japanese-law
 
 
 
 
 
 
 
 
 
 
 
25
  configs:
26
  - config_name: corpus-en
27
  data_files:
@@ -89,51 +94,103 @@ configs:
89
  path: metadata-ja/dataset.jsonl
90
  ---
91
 
92
- # ReCaRe — A Bilingual Legal Benchmark for Revision Candidate Retrieval
93
 
94
- > ReCaRe (pronounced "re-care") supports retrieval research on **document
95
- > maintenance**: locating which provisions of a legal corpus must change when
96
- > a new amendment is proposed, and which other provisions must change with
97
- > them. Built from European Union law (EUR-Lex) and Japanese law (e-Gov)
98
- > across 703 amendment events and ~181k articles, ReCaRe defines two
99
- > Revision Candidate Retrieval (RCR) tasks — Rat2Rev and Rev2Rev — over a
100
- > shared bilingual corpus.
101
 
102
- - **Repository**: <https://huggingface.co/datasets/kasys/ReCaRe>
103
- - **Owner / Org**: `kasys` (HuggingFace) corresponds to `kasys-lab` on GitHub
104
- - **License**: CC BY 4.0 (EU subset) / CC BY 4.0 + CC0 1.0 (Japanese subset)
105
- - **DOI**: _to be filled in once HF Settings → Generate DOI is run on `v0.1.0`_
106
- - **Version**: `v0.1.0` (initial public release for CIKM 2026 Resource paper)
107
- - **Code**: analysis & baseline code at `kasys-lab/ReCaRe` (GitHub, see #15)
108
 
109
- ---
 
 
110
 
111
- ## Dataset summary
112
 
113
- Document corpora in regulated settings are not static. Statutes are amended,
114
- internal policies are revised, software specifications are updated. Yet most
115
- information retrieval (IR) research has framed retrieval as a one-shot
116
- question-answering problem over a frozen corpus, leaving the IR aspects of
117
- *document maintenance* — finding which documents need to change, and which
118
- other documents must change with them — comparatively underexplored.
119
 
120
- ReCaRe formalises two complementary retrieval problems that arise during
121
- document maintenance:
122
 
123
- - **Rat2Rev** (Rationale-to-Revision Retrieval): given the *textual rationale*
124
  of a proposed amendment (long, abstract), retrieve the concrete articles
125
  that must be modified to implement the amendment.
126
- - **Rev2Rev** (Revision-to-Revision Retrieval): given one already-revised
127
- article, retrieve the other articles revised in the same legislative event
128
- (co-revised articles).
129
-
130
- Both tasks share a single bilingual corpus (~91k EU articles in English +
131
- ~90k Japanese articles) and are released under CC BY 4.0 / CC0.
132
 
133
  The dataset is the resource artifact of the CIKM 2026 paper
134
  *"ReCaRe: A Bilingual Legal Benchmark for Revision Candidate Retrieval."*
135
 
136
- ## Configs (12)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
 
138
  | Config | Splits | Schema | Records |
139
  | --- | --- | --- | --- |
@@ -150,26 +207,30 @@ The dataset is the resource artifact of the CIKM 2026 paper
150
  | `metadata-en` | `metadata` | 16-field amendment metadata (see below) | 91,361 |
151
  | `metadata-ja` | `metadata` | same | 90,170 |
152
 
153
- > All configs are JSONL. Use a 4-line snippet (below) to convert qrels to
154
- > TREC format if your stack expects that.
155
-
156
- ### `metadata-*` schema (verbatim from construction pipeline)
157
-
158
- `amendment_law_id`, `law_id`, `type_of_change`, `egov_compare_url`,
159
- `law_title_before`, `revision_id_before`, `article_id_before`,
160
- `article_number_before`, `caption_before`, `text_before`,
161
- `law_title_after`, `revision_id_after`, `article_id_after`,
162
- `article_number_after`, `caption_after`, `text_after`.
163
-
164
- Records with `amendment_law_id == "None"` are unchanged articles
165
- (~85–93%); records with non-`None` amendment IDs are revisions traceable to
166
- a specific amending act. The metadata configs are intended for downstream
167
- analyses that need full provenance and are **not** required for running the
168
- retrieval tasks themselves (use the `corpus`, `queries`, `qrels` configs).
169
-
170
- ## Quick start
171
-
172
- ### Python (`datasets`)
 
 
 
 
173
 
174
  ```python
175
  from datasets import load_dataset
@@ -177,248 +238,176 @@ from datasets import load_dataset
177
  corpus = load_dataset("kasys/ReCaRe", "corpus-en", split="corpus")
178
  queries = load_dataset("kasys/ReCaRe", "queries-rat2rev-en", split="queries")
179
  qrels = load_dataset("kasys/ReCaRe", "qrels-rat2rev-en") # train/validation/test
180
-
181
- print(corpus[0]) # {'_id': '...', 'text': '...'}
182
- print(queries[0]) # {'_id': '...', 'text': '...'}
183
- print(qrels["test"][0]) # {'query-id': '...', 'corpus-id': '...', 'score': 1}
184
  ```
185
 
186
- ### Convert qrels to `trec_eval` format
187
 
188
- ```python
189
- from datasets import load_dataset
190
- import pandas as pd
191
- ds = load_dataset("kasys/ReCaRe", "qrels-rat2rev-en", split="test")
192
- df = pd.DataFrame(ds).assign(iter=0)
193
- df[["query-id", "iter", "corpus-id", "score"]].to_csv(
194
- "qrels.trec", sep=" ", header=False, index=False)
195
- ```
196
 
197
- ### BEIR loader (after rename)
198
 
199
- ```python
200
- from datasets import load_dataset
201
- import pandas as pd, os
202
- os.makedirs("recare-en/qrels", exist_ok=True)
203
- load_dataset("kasys/ReCaRe", "corpus-en", split="corpus")\
204
- .to_json("recare-en/corpus.jsonl", lines=True, force_ascii=False)
205
- load_dataset("kasys/ReCaRe", "queries-rat2rev-en", split="queries")\
206
- .to_json("recare-en/queries.jsonl", lines=True, force_ascii=False)
207
- pd.DataFrame(load_dataset("kasys/ReCaRe", "qrels-rat2rev-en", split="test"))\
208
- .to_csv("recare-en/qrels/test.tsv", sep="\t", index=False)
209
- # then:
210
- from beir.datasets.data_loader import GenericDataLoader
211
- corpus, queries, qrels = GenericDataLoader(data_folder="recare-en").load(split="test")
212
- ```
213
 
214
- ---
215
 
216
- ## FAIR principles
217
-
218
- ReCaRe is published with explicit attention to the FAIR principles
219
- (Findable, Accessible, Interoperable, Reusable) for research data
220
- [Wilkinson et al. 2016, *Sci. Data*].
221
-
222
- ### F — Findable
223
-
224
- The dataset has a globally unique persistent identifier — a HuggingFace-issued
225
- DOI (DataCite) on this page (Settings → Generate DOI on tag `v0.1.0`), and is
226
- discoverable via HuggingFace Hub search, the `datasets` library, the project
227
- homepage, and the CIKM 2026 paper. A Zenodo mirror with an additional
228
- permanent DOI is published in the companion repository. Each record carries
229
- a stable `_id` (article identifier) traceable back to its source act
230
- (CELEX number for EU, e-Gov / 法令索引 / 衆議院議案 ID for JP) so that
231
- individual articles, queries, and amendments can be cited unambiguously.
232
-
233
- ### A — Accessible
234
-
235
- The full dataset is openly accessible without authentication or registration
236
- via the HuggingFace `datasets` library and via direct HTTPS download from
237
- this page. The repository is `public` and licenses are
238
- machine-readable (SPDX) in the YAML front-matter. We commit to keeping the
239
- artifact accessible for the lifetime of HuggingFace; should the platform
240
- become unavailable, the Zenodo mirror remains canonical and self-describing
241
- JSONL means consumers can ingest the data with any standard parser.
242
-
243
- ### I — Interoperable
244
-
245
- The data is stored in **JSONL with BEIR-canonical schemas** so it works out
246
- of the box with the existing IR ecosystem (BEIR loaders, `ir_measures`,
247
- `pytrec_eval`, Pyserini, sentence-transformers). Field names follow BEIR
248
- conventions (`_id`, `text`, `query-id`, `corpus-id`, `score`); a one-paste
249
- TREC qrels conversion snippet is provided above for `trec_eval`. The
250
- metadata configs use a flat 16-field schema documented in this README, so
251
- relational joins back to amendment-level provenance are straightforward.
252
-
253
- ### R — Reusable
254
-
255
- Each record is released under a clearly identified open license (CC BY 4.0
256
- for EU sources; CC BY 4.0 / CC0 1.0 for Japanese sources, both inherited
257
- from the upstream public bodies). Provenance is preserved at the record
258
- level via the `metadata-*` configs, which carry the source amendment ID,
259
- the canonical comparison URL, and the before/after article text. Construction
260
- methodology (alignment via Dice/Simpson with minor-edit filtering, query
261
- typing, train/validation/test split inheritance) is documented in the
262
- companion paper and summarised in the *Datasheet* section below. The
263
- versioning scheme is semver-aligned (`v0.1.0` for this release); future
264
- patches that reissue qrels or correct alignment errors will land as
265
- `v0.1.x`.
266
 
267
- ---
268
 
269
- ## Datasheet for Datasets
270
-
271
- The following follows the *Datasheets for Datasets* template
272
- [Gebru et al. 2018, arXiv:1803.09010] and answers each section concisely.
273
- For details, see the CIKM 2026 paper.
274
-
275
- ### Motivation
276
-
277
- ReCaRe was created because existing legal-IR benchmarks (COLIEE, BSARD,
278
- LeCaRD, STARD, LegalBench-RAG) cover statutory or case-law question
279
- answering but not *document maintenance* — finding which provisions must
280
- change when a corpus evolves. Two retrieval tasks of high practical
281
- relevance to legal drafting and policy revision (Rat2Rev, Rev2Rev) had no
282
- shared benchmark. The dataset was constructed by Hiroyoshi Itō, Yūma
283
- Kurokawa, Makoto P. Kato (University of Tsukuba) and Sumio Fujita
284
- (LY Corporation) for academic research, with no commissioned funding.
285
-
286
- ### Composition
287
-
288
- Each instance is either an **article** (a single legal provision; ~181k
289
- total across two languages), a **query** (an amendment rationale text in
290
- Rat2Rev, or a revised article in Rev2Rev; 703 + 3,162 queries respectively),
291
- or a **qrel** (a relevance judgment of the form `(query, article)`).
292
- Coverage spans 340 EU amendment events (2010–2025) and 363 Japanese
293
- amendment events (2019–2025). Articles contain only public legal text;
294
- metadata records carry IDs and timestamps but no personal information.
295
- There are no missing values in the released JSONL — articles or amendments
296
- without complete provenance were dropped during construction.
297
-
298
- ### Collection process
299
-
300
- Source documents were retrieved from public legal portals: EUR-Lex
301
- (CC BY 4.0 / CC0; CELEX-numbered consolidated acts) for EU law, and
302
- e-Gov 法令検索 + 日本法令索引 + 衆議院議案 (CC BY 4.0 / CC0) for Japanese
303
- law. We downloaded full consolidated text per act, extracted articles by
304
- the official numbering scheme, and collected explicit
305
- amendment events (acts that explicitly amend prior acts). Acquisition spanned
306
- 2025-Q3–2026-Q1. No human subjects were involved. The two-language design
307
- follows from the choice to ground the benchmark in two jurisdictions whose
308
- legal-revision practices differ (EU consolidation tradition vs. Japanese
309
- amending-act tradition).
310
 
311
- ### Preprocessing / cleaning / labeling
312
-
313
- Articles are paired with revisions via **Dice / Simpson coefficient
314
- matching** between before/after article text, with **minor-edit removal**
315
- filtering out punctuation-only and renumbering-only changes. Queries for
316
- Rat2Rev are the official rationale text of each amending act; queries for
317
- Rev2Rev are individual revised articles (one query per revised article, up
318
- to 5 queries per amendment). Qrels are derived deterministically from the
319
- amendment alignment: a `(rationale, article)` pair is positive iff the
320
- article is among those revised by that amendment; a `(revised-article,
321
- article)` pair is positive iff both are revised by the same amendment
322
- event. Train / validation / test splits are inherited from
323
- the prior DEIM 2026 papers (Itō et al. 2F-01, Kurokawa et al. 4F-04) for
324
- direct comparability with their reported numbers. Construction code is
325
- **not** released (it depends on internal scrapers); the relationship is
326
- documented in the paper, and label validity is independently verified by
327
- two-rater blind annotation on a stratified 200-pair sample (see *Limitations*).
328
-
329
- ### Uses
330
-
331
- The dataset is intended for academic IR research on document maintenance,
332
- revision retrieval, multilingual / cross-jurisdictional retrieval, and as
333
- a difficulty contrast point for general-domain BEIR benchmarks (low
334
- query-document lexical overlap, multi-target qrels, implicit dependency).
335
- It is **not** intended to support automated legal drafting, automated
336
- revision recommendation in production legal workflows, or legal advice;
337
- retrieved articles are revision **candidates** for expert review, not
338
- authoritative outputs. Users should not infer that a model performing well
339
- on ReCaRe is suitable for unsupervised legal-corpus maintenance. Other
340
- appropriate uses include: training and evaluation of multilingual dense
341
- retrievers, ablation of long-context vs. short-context retrieval models,
342
- cross-task generalisation studies between Rat2Rev and Rev2Rev, and as
343
- held-out legal benchmark in foundation-model evaluations.
344
-
345
- ### Distribution
346
-
347
- ReCaRe is distributed publicly via HuggingFace Datasets (`kasys/ReCaRe`,
348
- this page) under CC BY 4.0 / CC0 (per source-language license), with a
349
- HuggingFace-issued DOI (DataCite) on tag `v0.1.0`. A Zenodo mirror with an
350
- additional permanent DOI provides redundancy. The dataset is freely
351
- downloadable without registration. Source code for analysis / baselines is
352
- distributed separately at `kasys-lab/ReCaRe` (GitHub).
353
-
354
- ### Maintenance
355
-
356
- The dataset is maintained by the authors. Versioning follows semver:
357
- `v0.1.0` is the initial public release; corrective releases (e.g. label
358
- fixes, new amendment events) will land as `v0.1.x` (patch) or `v0.x.0`
359
- (minor). Each release is git-tagged on this HuggingFace repo and mirrored
360
- to Zenodo. Issues (errata, license clarifications, schema questions) are
361
- tracked at the project's GitHub repository
362
- (<https://github.com/mpkato/CIKM2026-ito-kurokawa>). There is no
363
- guaranteed support timeline, but we intend to keep the dataset accessible
364
- and answer well-formed issues for at least the duration of the CIKM 2026
365
- review cycle and the subsequent academic year.
366
 
367
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
 
369
- ## Statistics summary
370
 
371
- | Subset | Amendments | Articles | Rat2Rev queries | Rev2Rev queries | Period | License |
372
- | --- | --- | --- | --- | --- | --- | --- |
373
- | ReCaRe-EN (EU) | 340 | 91,361 | 340 | 1,509 | 2010–2025 | CC BY 4.0 |
374
- | ReCaRe-JA (JP) | 363 | 90,170 | 363 | 1,653 | 2019–2025 | CC BY 4.0 / CC0 |
375
- | **Total** | **703** | **181,531** | **703** | **3,162** | — | — |
376
 
377
- ## Limitations
378
 
379
- - **Annotator-construction overlap.** The relevance-label validity check
380
- (sampled 200 q-d pairs, 2 raters, blind) is performed by authors of the
381
- construction pipeline. Future work: third-party annotation.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  - **Coverage windows differ.** EU period is 2010–2025; Japanese period is
383
- 2019–2025. This is a function of upstream availability and is documented
384
- in the paper.
385
- - **Construction code not released.** The alignment pipeline depends on
 
386
  internal scrapers (EUR-Lex / e-Gov) that are not part of the release.
387
- The dataset itself, however, is fully public so that retrieval-side
 
 
388
  experiments are completely reproducible.
389
  - **Implicit dependency in Rev2Rev.** Some co-revised article pairs share
390
- no surface vocabulary; this is the intended difficulty of the task but
391
- means lexical retrievers underperform.
 
 
 
 
392
  - **Not a substitute for legal advice.** The dataset is a research
393
  resource. Retrieved articles are revision *candidates* for expert review.
394
 
395
- ## Ethical considerations
396
 
397
- ReCaRe contains only **public legal text** (statutes and amending acts
398
- published by the European Union and the Japanese government). No personal
399
- data, no human-subjects data, and no proprietary content is included.
400
- References to officials or named parties in legal text appear because they
401
- are part of the public record and are not subject to research-purpose
402
- privacy obligations. The annotation step (label validity verification) is
403
- performed by the paper's co-authors on already-public legal articles, with
404
- no external participants, so the work is **not subject to IRB review**.
405
- See the CIKM 2026 paper §3.3 (Ethical Considerations) for the full
406
- treatment.
407
 
408
- ## License & attribution
409
 
410
- - **EU subset**: data sourced from EUR-Lex under CC BY 4.0 (EUR-Lex
411
- re-use notice). Attribution: European Union, EUR-Lex.
412
- - **Japanese subset**: data sourced from e-Gov 法令検索, 日本法令索引,
413
- 衆議院議案 under CC BY 4.0 / CC0 1.0 as published. Attribution: 日本国
414
- 政府.
415
- - **ReCaRe construction & curation**: © the authors (Itō, Kurokawa, Kato,
416
- Fujita), released under CC BY 4.0 to match the upstream EU subset.
 
 
 
417
 
418
- When using ReCaRe, please cite both the dataset DOI and the CIKM 2026
419
- paper.
420
 
421
- ## Citation
 
 
422
 
423
  ```bibtex
424
  @inproceedings{ito2026recare,
@@ -428,17 +417,45 @@ paper.
428
  series = {CIKM '26},
429
  year = {2026},
430
  publisher = {Association for Computing Machinery},
431
- note = {Resource Track. Dataset DOI: \url{https://doi.org/<HF DOI>} ; \url{https://huggingface.co/datasets/kasys/ReCaRe}},
432
  }
433
  ```
434
 
435
- > The DOI placeholder will be replaced once HF Settings → Generate DOI is
436
- > run on tag `v0.1.0`. Camera-ready citation will list both the HF DOI and
437
- > the Zenodo mirror DOI.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
 
439
- ## Contact
440
 
441
- - Hiroyoshi Itō (first author, Rev2Rev) University of Tsukuba
442
- - Yūma Kurokawa (first author, Rat2Rev) — University of Tsukuba
443
- - Makoto P. Kato (corresponding author) — `mpkato@slis.tsukuba.ac.jp`
444
- - Sumio Fujita — LY Corporation
 
1
  ---
2
+ # For reference on dataset card metadata, see the spec: https://github.com/huggingface/hub-docs/blob/main/datasetcard.md?plain=1
3
+ # Doc / guide: https://huggingface.co/docs/hub/datasets-cards
 
4
  language:
5
  - en
6
  - ja
7
+ license:
8
+ - cc-by-4.0
9
+ - cc0-1.0
 
 
10
  tags:
11
  - legal
12
  - law
 
14
  - bilingual
15
  - retrieval
16
  - benchmark
 
 
 
17
  - eu-law
18
  - japanese-law
19
+ annotations_creators:
20
+ - expert-generated
21
+ language_creators:
22
+ - expert-generated
23
+ pretty_name: ReCaRe — A Bilingual Legal Benchmark for Revision Candidate Retrieval
24
+ size_categories:
25
+ - 100K<n<1M
26
+ source_datasets:
27
+ - original
28
+ task_categories:
29
+ - text-retrieval
30
  configs:
31
  - config_name: corpus-en
32
  data_files:
 
94
  path: metadata-ja/dataset.jsonl
95
  ---
96
 
97
+ # Dataset Card for ReCaRe — A Bilingual Legal Benchmark for Revision Candidate Retrieval
98
 
99
+ <!-- Provide a quick summary of the dataset. -->
 
 
 
 
 
 
100
 
101
+ ReCaRe (pronounced "re-care") is a bilingual legal benchmark for **Revision
102
+ Candidate Retrieval (RCR)** locating the provisions of a legal corpus
103
+ that constitute plausible candidates for an authoritative revision. It
104
+ spans European Union law (EUR-Lex, English) and Japanese law (e-Gov,
105
+ Japanese), with 703 amendment events and ~181k articles, supporting two
106
+ retrieval tasks (Rat2Rev and Rev2Rev) over a single shared corpus.
107
 
108
+ ## Dataset Details
109
+
110
+ ### Dataset Description
111
 
112
+ <!-- Provide a longer summary of what this dataset is. -->
113
 
114
+ Document corpora in regulated domains evolve: statutes are amended, internal
115
+ policies revised, software specifications updated. Yet most information
116
+ retrieval research has framed retrieval as a one-shot question-answering
117
+ problem over a frozen corpus, leaving the IR aspects of *document
118
+ maintenance* — finding which documents need to change, and which other
119
+ documents must change with them — comparatively underexplored.
120
 
121
+ ReCaRe formalises two complementary RCR tasks over a shared bilingual
122
+ corpus:
123
 
124
+ - **Rat2Rev (Rationale-to-Revision Retrieval).** Given the textual rationale
125
  of a proposed amendment (long, abstract), retrieve the concrete articles
126
  that must be modified to implement the amendment.
127
+ - **Rev2Rev (Revision-to-Revision Retrieval).** Given one already-revised
128
+ article, retrieve the other articles revised in the same legislative
129
+ event (co-revised articles).
 
 
 
130
 
131
  The dataset is the resource artifact of the CIKM 2026 paper
132
  *"ReCaRe: A Bilingual Legal Benchmark for Revision Candidate Retrieval."*
133
 
134
+ - **Curated by:** Hiroyoshi Itō, Yūma Kurokawa, Makoto P. Kato (University of Tsukuba); Sumio Fujita (LY Corporation).
135
+ - **Funded by [optional]:** [More Information Needed]
136
+ - **Shared by [optional]:** `kasys` (HuggingFace organization); maintained by `mpkato`.
137
+ - **Language(s) (NLP):** English (`en`, EU subset) and Japanese (`ja`, Japanese subset).
138
+ - **License:** CC BY 4.0 (EU subset); CC BY 4.0 / CC0 1.0 (Japanese subset, depending on upstream source).
139
+
140
+ ### Dataset Sources [optional]
141
+
142
+ <!-- Provide the basic links for the dataset. -->
143
+
144
+ - **Repository:** <https://huggingface.co/datasets/kasys/ReCaRe>
145
+ - **Paper [optional]:** Itō, Kurokawa, Kato & Fujita. *ReCaRe: A Bilingual Legal Benchmark for Revision Candidate Retrieval.* CIKM 2026 Resource Track (under submission).
146
+ - **Demo [optional]:** [More Information Needed]
147
+
148
+ ## Uses
149
+
150
+ <!-- Address questions around how the dataset is intended to be used. -->
151
+
152
+ ### Direct Use
153
+
154
+ <!-- This section describes suitable use cases for the dataset. -->
155
+
156
+ ReCaRe is intended as a research benchmark for:
157
+
158
+ - Training and evaluating multilingual / cross-lingual retrieval models on
159
+ legal text where queries and target documents differ markedly in length
160
+ and register.
161
+ - Studying *document maintenance* retrieval: surfacing revision candidates
162
+ for expert review, distinct from question-answering or paragraph-level
163
+ retrieval.
164
+ - Comparative benchmarking against general-domain IR resources (e.g. BEIR)
165
+ to characterise the difficulty of low-overlap, multi-target retrieval
166
+ with implicit dependency.
167
+ - Ablation of long-context vs. short-context retrieval models, given that
168
+ Rat2Rev queries are substantially longer than typical IR queries.
169
+
170
+ ### Out-of-Scope Use
171
+
172
+ <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
173
+
174
+ ReCaRe is **not** designed for, and should not be used as, a basis for:
175
+
176
+ - Automated legal drafting, automated revision recommendation, or any other
177
+ production legal workflow without expert review. Retrieved articles are
178
+ *candidates* for expert review, not authoritative outputs.
179
+ - Provision of legal advice to end-users.
180
+ - Inference of personal or demographic information about individuals — the
181
+ data contains only public legal text, but personal names appearing in
182
+ legal records (e.g. drafters, ministers) should not be used to build
183
+ profiles of those individuals.
184
+ - Generalisation claims about legal systems other than the EU and Japan,
185
+ or about time periods outside the included windows (EU 2010–2025; JP
186
+ 2019–2025).
187
+
188
+ ## Dataset Structure
189
+
190
+ <!-- This section provides a description of the dataset fields, and additional information about the dataset structure such as criteria used to create the splits, relationships between data points, etc. -->
191
+
192
+ The dataset is organised as **12 configs** sharing two language-aligned
193
+ corpora:
194
 
195
  | Config | Splits | Schema | Records |
196
  | --- | --- | --- | --- |
 
207
  | `metadata-en` | `metadata` | 16-field amendment metadata (see below) | 91,361 |
208
  | `metadata-ja` | `metadata` | same | 90,170 |
209
 
210
+ All files are JSONL with one JSON object per line. The schemas follow BEIR
211
+ conventions (`_id`, `text`, `query-id`, `corpus-id`, `score`) so that
212
+ existing tooling such as `ir_measures`, `pytrec_eval`, and Pyserini works
213
+ without adapter code.
214
+
215
+ **`metadata-{en,ja}` schema** (verbatim from the construction pipeline,
216
+ 16 fields): `amendment_law_id`, `law_id`, `type_of_change`,
217
+ `egov_compare_url`, `law_title_before`, `revision_id_before`,
218
+ `article_id_before`, `article_number_before`, `caption_before`,
219
+ `text_before`, `law_title_after`, `revision_id_after`, `article_id_after`,
220
+ `article_number_after`, `caption_after`, `text_after`. Records with
221
+ `amendment_law_id == "None"` are unchanged articles (≈85–93%); records
222
+ with non-`None` amendment IDs are revisions traceable to a specific
223
+ amending act. The metadata configs are provided for downstream provenance
224
+ analyses and are not required to run the retrieval tasks themselves.
225
+
226
+ **Splits.** The `qrels-*` configs use train / validation / test splits
227
+ inherited from the prior DEIM 2026 papers (Itō et al. 2F-01; Kurokawa et
228
+ al. 4F-04) for direct comparability with their reported numbers. The
229
+ `corpus-*`, `queries-*`, and `metadata-*` configs are not split — the full
230
+ corpus is used at retrieval time, and queries split membership is encoded
231
+ through the qrels.
232
+
233
+ **Quick start.**
234
 
235
  ```python
236
  from datasets import load_dataset
 
238
  corpus = load_dataset("kasys/ReCaRe", "corpus-en", split="corpus")
239
  queries = load_dataset("kasys/ReCaRe", "queries-rat2rev-en", split="queries")
240
  qrels = load_dataset("kasys/ReCaRe", "qrels-rat2rev-en") # train/validation/test
 
 
 
 
241
  ```
242
 
243
+ ## Dataset Creation
244
 
245
+ ### Curation Rationale
 
 
 
 
 
 
 
246
 
247
+ <!-- Motivation for the creation of this dataset. -->
248
 
249
+ Existing legal-IR benchmarks (e.g. COLIEE, BSARD, LeCaRD, STARD,
250
+ LegalBench-RAG) cover statutory or case-law question answering but not
251
+ *document maintenance* finding which provisions must change when a
252
+ corpus evolves. ReCaRe was constructed to give the IR community a shared,
253
+ bilingual benchmark for two practically motivated retrieval tasks
254
+ (Rat2Rev, Rev2Rev) over a single legal corpus, in two jurisdictions whose
255
+ legal-revision practices differ (EU consolidation tradition vs. Japanese
256
+ amending-act tradition).
 
 
 
 
 
 
257
 
258
+ ### Source Data
259
 
260
+ <!-- This section describes the source data (e.g. news text and headlines, social media posts, translated sentences, ...). -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
 
262
+ The dataset contains **only public legal text** drawn from official portals:
263
 
264
+ - **EU subset:** EUR-Lex (CC BY 4.0 / CC0 re-use) — CELEX-numbered
265
+ consolidated Regulations, Directives, and Decisions (2010–2025).
266
+ - **Japanese subset:** e-Gov 法令検索, 日本法令索引, 衆議院議案 (CC BY 4.0
267
+ / CC0) consolidated statutes and amending acts (2019–2025).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
 
269
+ #### Data Collection and Processing
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
+ <!-- This section describes the data collection and processing process such as data selection criteria, filtering and normalization methods, tools and libraries used, etc. -->
272
+
273
+ Acquisition spanned 2025-Q3–2026-Q1. Full consolidated text was downloaded
274
+ per act, articles were extracted by official numbering, and explicit
275
+ amendment events (acts that amend prior acts) were collected. Articles
276
+ were then aligned with their before/after revisions through **Dice /
277
+ Simpson coefficient matching** between paired article texts; **minor-edit
278
+ filtering** (punctuation-only and pure renumbering) removed alignments
279
+ without semantic change.
280
+
281
+ Queries are derived deterministically from this alignment:
282
+
283
+ - **Rat2Rev queries** are the official rationale text of each amending act
284
+ (one query per amendment).
285
+ - **Rev2Rev queries** are individual revised articles (up to five queries
286
+ per amendment, sampled when more revisions exist).
287
+
288
+ Qrels are likewise derived deterministically: a `(rationale, article)`
289
+ pair is positive iff the article is among those revised by that amendment;
290
+ a `(revised-article, article)` pair is positive iff both are revised by
291
+ the same amendment event.
292
+
293
+ The construction pipeline depends on internal scrapers and is not part of
294
+ the public release, but the resulting dataset is fully public so that
295
+ retrieval-side experiments are completely reproducible.
296
+
297
+ #### Who are the source data producers?
298
+
299
+ <!-- This section describes the people or systems who originally created the data. It should also include self-reported demographic or identity information for the source data creators if this information is available. -->
300
+
301
+ The original legal text was authored by the **European Union legislative
302
+ bodies** (Council, Parliament, Commission, etc.) and by **the Government
303
+ of Japan** (Diet, ministries, etc.), and is published in their respective
304
+ official portals as public law. Producers are state-level institutions
305
+ acting in a public legislative or regulatory capacity; no individual
306
+ authorship metadata is included in the dataset beyond what appears in the
307
+ text of the law itself.
308
+
309
+ ### Annotations [optional]
310
 
311
+ <!-- If the dataset contains annotations which are not part of the initial data collection, use this section to describe them. -->
312
 
313
+ #### Annotation process
 
 
 
 
314
 
315
+ <!-- This section describes the annotation process such as annotation tools used in the process, the amount of data annotated, annotation guidelines provided to the annotators, interannotator statistics, annotation validation, etc. -->
316
 
317
+ Relevance labels (qrels) are produced **automatically** from the official
318
+ amendment alignment described above; there is no per-pair human labelling
319
+ in the released qrels.
320
+
321
+ A separate **label-validity audit** is conducted on a stratified sample of
322
+ 200 query–document pairs (50 per `(task, language)` slice; per-slice
323
+ strata: 25 positive, 12 hard-negative drawn from BM25 top-100 minus
324
+ positives, 13 random-negative drawn from the corpus minus positives), to
325
+ verify that the construction pipeline's labels agree with human judgement.
326
+ Two annotators independently judge each pair as `relevant` /
327
+ `not relevant` under blind conditions (provenance and stratum hidden in a
328
+ custom web tool). Reported metrics include positive precision (P_pos),
329
+ hard-negative precision (P_neg-hard), random-negative precision
330
+ (P_neg-rand), and Cohen's κ for inter-annotator agreement. Audit results
331
+ appear in the paper; the audit sample is **not** part of the released qrels.
332
+
333
+ #### Who are the annotators?
334
+
335
+ <!-- This section describes the people or systems who created the annotations. -->
336
+
337
+ The label-validity audit annotators are the paper's first authors
338
+ (H. Itō and Y. Kurokawa). Both have research experience in legal
339
+ information retrieval (DEIM 2026 papers 2F-01 and 4F-04). They are also
340
+ authors of the construction pipeline, which is acknowledged as an
341
+ annotator-construction overlap in the paper's Limitations.
342
+
343
+ #### Personal and Sensitive Information
344
+
345
+ <!-- State whether the dataset contains data that might be considered personal, sensitive, or private (e.g., data that reveals addresses, uniquely identifiable names or aliases, racial or ethnic origins, sexual orientations, religious beliefs, political opinions, financial or health data, etc.). If efforts were made to anonymize the data, describe the anonymization process. -->
346
+
347
+ The dataset contains **only public legal text** released by the European
348
+ Union and the Japanese government. References to officials, ministers, or
349
+ other named parties appear because they are part of the public legislative
350
+ record; they are not subject to research-purpose privacy obligations and
351
+ have not been anonymised. The dataset does not contain personal contact
352
+ information, financial information, health information, or any data that
353
+ would qualify as personal or sensitive under GDPR / Japanese personal
354
+ information protection law.
355
+
356
+ The label-validity audit (above) is performed by the paper's co-authors on
357
+ already-public legal articles, with no external participants. The work is
358
+ **not subject to IRB review** under the standard "human subjects research"
359
+ definition.
360
+
361
+ ## Bias, Risks, and Limitations
362
+
363
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
364
+
365
+ - **Annotator-construction overlap.** The label-validity audit is performed
366
+ by authors of the construction pipeline; despite blind judgement, this
367
+ raises the possibility of subtle bias toward the pipeline's decisions.
368
+ Third-party annotation is left as future work.
369
  - **Coverage windows differ.** EU period is 2010–2025; Japanese period is
370
+ 2019–2025. The longer EU window is a function of upstream availability
371
+ and means temporal generalisation conclusions across the two subsets
372
+ must be drawn with care.
373
+ - **Construction code not released.** The alignment pipeline relies on
374
  internal scrapers (EUR-Lex / e-Gov) that are not part of the release.
375
+ Independent verification of the relevance signal therefore depends on
376
+ the documentation in the paper rather than re-runnable construction
377
+ code; the dataset itself, however, is fully public so retrieval
378
  experiments are completely reproducible.
379
  - **Implicit dependency in Rev2Rev.** Some co-revised article pairs share
380
+ little surface vocabulary; this is the intended difficulty of the task,
381
+ but lexical retrievers (e.g. BM25) systematically underperform.
382
+ - **Legal scope.** The dataset is grounded in EU and Japanese law and
383
+ inherits the conventions, drafting traditions, and any latent biases of
384
+ those legal systems. Conclusions should not be transferred to other
385
+ jurisdictions or to non-statutory legal text without further validation.
386
  - **Not a substitute for legal advice.** The dataset is a research
387
  resource. Retrieved articles are revision *candidates* for expert review.
388
 
389
+ ### Recommendations
390
 
391
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
 
 
 
 
 
 
 
 
 
392
 
393
+ Users should:
394
 
395
+ - Treat the dataset as an evaluation benchmark for retrieval research, not
396
+ as a training signal for production legal-decision systems.
397
+ - Report results separately by language and task; cross-language averaging
398
+ can hide systematic differences.
399
+ - Cite both the dataset (this HuggingFace artifact) and the CIKM 2026
400
+ paper, and acknowledge the upstream public-source licenses (EUR-Lex,
401
+ e-Gov / 法令索引 / 衆議院議案).
402
+ - Expect that strong off-the-shelf retrievers will show substantial
403
+ headroom on both tasks; the paper documents this as a feature, not a
404
+ defect, of the resource.
405
 
406
+ ## Citation [optional]
 
407
 
408
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
409
+
410
+ **BibTeX:**
411
 
412
  ```bibtex
413
  @inproceedings{ito2026recare,
 
417
  series = {CIKM '26},
418
  year = {2026},
419
  publisher = {Association for Computing Machinery},
420
+ note = {Resource Track. Dataset: \url{https://huggingface.co/datasets/kasys/ReCaRe}},
421
  }
422
  ```
423
 
424
+ **APA:**
425
+
426
+ > Itō, H., Kurokawa, Y., Kato, M. P., & Fujita, S. (2026). *ReCaRe: A Bilingual Legal Benchmark for Revision Candidate Retrieval.* In Proceedings of the 35th ACM International Conference on Information and Knowledge Management (CIKM '26). [https://huggingface.co/datasets/kasys/ReCaRe](https://huggingface.co/datasets/kasys/ReCaRe)
427
+
428
+ (DOI to be added once HF Settings → Generate DOI is run on tag `v0.1.0`.)
429
+
430
+ ## Glossary [optional]
431
+
432
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
433
+
434
+ - **RCR (Revision Candidate Retrieval).** The umbrella retrieval task of
435
+ locating documents that constitute plausible candidates for an
436
+ authoritative revision.
437
+ - **Rat2Rev (Rationale-to-Revision Retrieval).** Given an amendment's
438
+ textual rationale, retrieve the concrete articles to be modified.
439
+ - **Rev2Rev (Revision-to-Revision Retrieval).** Given one revised article,
440
+ retrieve the other articles revised in the same amendment event.
441
+ - **Amendment event.** One amending act (a single Regulation, Directive,
442
+ or domestic amending law) that modifies one or more prior provisions.
443
+ - **CELEX number.** The unique identifier used by EUR-Lex for EU legal
444
+ documents.
445
+
446
+ ## More Information [optional]
447
+
448
+ - **Versioning.** This release is `v0.1.0`; corrective releases will use
449
+ `v0.1.x` (patch) or `v0.x.0` (minor) and be tagged on this HuggingFace
450
+ repository. A Zenodo mirror is planned for additional persistence.
451
+ - **Codebase.** Analysis and baseline reproduction code lives at the
452
+ `kasys-lab/ReCaRe` GitHub repository. The dataset construction pipeline
453
+ is intentionally not released (relies on internal scrapers).
454
+
455
+ ## Dataset Card Authors [optional]
456
+
457
+ Hiroyoshi Itō, Yūma Kurokawa, Makoto P. Kato (University of Tsukuba); Sumio Fujita (LY Corporation).
458
 
459
+ ## Dataset Card Contact
460
 
461
+ Makoto P. Kato`mpkato@slis.tsukuba.ac.jp`