LEMUR / README.md
strich's picture
Update README.md
7539d7d verified
|
Raw
History Blame Contribute Delete
12.7 kB
metadata
pretty_name: EU Law Dataset - Category 15.10
annotations_creators:
  - machine-generated
language_creators:
  - found
language:
  - bg
  - cs
  - de
  - el
  - en
  - es
  - et
  - fi
  - fr
  - ga
  - hr
  - hu
  - it
  - lt
  - lv
  - mt
  - nl
  - pl
  - pt
  - ro
  - sk
  - sl
  - sv
multilinguality:
  - multilingual
size_categories:
  - 100K<n<1M
source_datasets:
  - original
task_categories:
  - text-retrieval
task_types:
  - semantic-search
arxiv:
  - 2602.0957
tags:
  - legal
  - law
  - EU-law
  - eur-lex
  - multilingual
  - information-retrieval
  - semantic-search
  - legal-nlp
configs:
  - config_name: Bulgarian
    data_files:
      - split: train
        path: languages/bg/train.jsonl
      - split: validation
        path: languages/bg/validation.jsonl
      - split: test
        path: languages/bg/test.jsonl
      - split: full
        path: languages/bg/full.jsonl
  - config_name: Czech
    data_files:
      - split: train
        path: languages/cs/train.jsonl
      - split: validation
        path: languages/cs/validation.jsonl
      - split: test
        path: languages/cs/test.jsonl
      - split: full
        path: languages/cs/full.jsonl
  - config_name: German
    data_files:
      - split: train
        path: languages/de/train.jsonl
      - split: validation
        path: languages/de/validation.jsonl
      - split: test
        path: languages/de/test.jsonl
      - split: full
        path: languages/de/full.jsonl
  - config_name: Greek
    data_files:
      - split: train
        path: languages/el/train.jsonl
      - split: validation
        path: languages/el/validation.jsonl
      - split: test
        path: languages/el/test.jsonl
      - split: full
        path: languages/el/full.jsonl
  - config_name: English
    data_files:
      - split: train
        path: languages/en/train.jsonl
      - split: validation
        path: languages/en/validation.jsonl
      - split: test
        path: languages/en/test.jsonl
      - split: full
        path: languages/en/full.jsonl
  - config_name: Spanish
    data_files:
      - split: train
        path: languages/es/train.jsonl
      - split: validation
        path: languages/es/validation.jsonl
      - split: test
        path: languages/es/test.jsonl
      - split: full
        path: languages/es/full.jsonl
  - config_name: Estonian
    data_files:
      - split: train
        path: languages/et/train.jsonl
      - split: validation
        path: languages/et/validation.jsonl
      - split: test
        path: languages/et/test.jsonl
      - split: full
        path: languages/et/full.jsonl
  - config_name: Finnish
    data_files:
      - split: train
        path: languages/fi/train.jsonl
      - split: validation
        path: languages/fi/validation.jsonl
      - split: test
        path: languages/fi/test.jsonl
      - split: full
        path: languages/fi/full.jsonl
  - config_name: French
    data_files:
      - split: train
        path: languages/fr/train.jsonl
      - split: validation
        path: languages/fr/validation.jsonl
      - split: test
        path: languages/fr/test.jsonl
      - split: full
        path: languages/fr/full.jsonl
  - config_name: Irish
    data_files:
      - split: train
        path: languages/ga/train.jsonl
      - split: validation
        path: languages/ga/validation.jsonl
      - split: test
        path: languages/ga/test.jsonl
      - split: full
        path: languages/ga/full.jsonl
  - config_name: Croatian
    data_files:
      - split: train
        path: languages/hr/train.jsonl
      - split: validation
        path: languages/hr/validation.jsonl
      - split: test
        path: languages/hr/test.jsonl
      - split: full
        path: languages/hr/full.jsonl
  - config_name: Hungarian
    data_files:
      - split: train
        path: languages/hu/train.jsonl
      - split: validation
        path: languages/hu/validation.jsonl
      - split: test
        path: languages/hu/test.jsonl
      - split: full
        path: languages/hu/full.jsonl
  - config_name: Italian
    data_files:
      - split: train
        path: languages/it/train.jsonl
      - split: validation
        path: languages/it/validation.jsonl
      - split: test
        path: languages/it/test.jsonl
      - split: full
        path: languages/it/full.jsonl
  - config_name: Lithuanian
    data_files:
      - split: train
        path: languages/lt/train.jsonl
      - split: validation
        path: languages/lt/validation.jsonl
      - split: test
        path: languages/lt/test.jsonl
      - split: full
        path: languages/lt/full.jsonl
  - config_name: Latvian
    data_files:
      - split: train
        path: languages/lv/train.jsonl
      - split: validation
        path: languages/lv/validation.jsonl
      - split: test
        path: languages/lv/test.jsonl
      - split: full
        path: languages/lv/full.jsonl
  - config_name: Maltese
    data_files:
      - split: train
        path: languages/mt/train.jsonl
      - split: validation
        path: languages/mt/validation.jsonl
      - split: test
        path: languages/mt/test.jsonl
      - split: full
        path: languages/mt/full.jsonl
  - config_name: Dutch
    data_files:
      - split: train
        path: languages/nl/train.jsonl
      - split: validation
        path: languages/nl/validation.jsonl
      - split: test
        path: languages/nl/test.jsonl
      - split: full
        path: languages/nl/full.jsonl
  - config_name: Polish
    data_files:
      - split: train
        path: languages/pl/train.jsonl
      - split: validation
        path: languages/pl/validation.jsonl
      - split: test
        path: languages/pl/test.jsonl
      - split: full
        path: languages/pl/full.jsonl
  - config_name: Portuguese
    data_files:
      - split: train
        path: languages/pt/train.jsonl
      - split: validation
        path: languages/pt/validation.jsonl
      - split: test
        path: languages/pt/test.jsonl
      - split: full
        path: languages/pt/full.jsonl
  - config_name: Romanian
    data_files:
      - split: train
        path: languages/ro/train.jsonl
      - split: validation
        path: languages/ro/validation.jsonl
      - split: test
        path: languages/ro/test.jsonl
      - split: full
        path: languages/ro/full.jsonl
  - config_name: Slovak
    data_files:
      - split: train
        path: languages/sk/train.jsonl
      - split: validation
        path: languages/sk/validation.jsonl
      - split: test
        path: languages/sk/test.jsonl
      - split: full
        path: languages/sk/full.jsonl
  - config_name: Slovenian
    data_files:
      - split: train
        path: languages/sl/train.jsonl
      - split: validation
        path: languages/sl/validation.jsonl
      - split: test
        path: languages/sl/test.jsonl
      - split: full
        path: languages/sl/full.jsonl
  - config_name: Swedish
    data_files:
      - split: train
        path: languages/sv/train.jsonl
      - split: validation
        path: languages/sv/validation.jsonl
      - split: test
        path: languages/sv/test.jsonl
      - split: full
        path: languages/sv/full.jsonl
license: apache-2.0

EU Law Dataset – Category 15.10: Environment

This dataset contains official legal documents from the European Union, collected from the EUR-Lex website, specifically under category 15.10: "Environment". The documents span from the year 1961 to 2025 and are provided in multiple European "languages. The original documents are in PDF format and have been converted into various text-based formats using OLMCR. The dataset splits represent the different "languages available for each document. It is designed for multilingual legal document retrieval. Queries consist of structured metadata, and each query is paired with the corresponding legal document as a positive retrieval example.

🔗 Links

Dataset Structure

Each document represents a legal act and is available in several European "languages. The dataset includes the same set of documents processed through different document conversion methods, organized into pages represented as rows in the dataset. Each row contains the following fields:

  • law_id: Unique identifier of the legal document.
  • category: Category identifier of the legal document (e.g., category15).
  • year: Year the legal document was published.
  • primary_language: Language code of the document (e.g., de).
  • metadata: Document header and front-matter text extracted from the source.
  • text: Full document text content, excluding metadata.
  • is_table: Boolean indicating whether any page in the document contains a table.
  • is_diagram: Boolean indicating whether any page in the document contains a diagram.
  • rotation_correction: Maximum absolute rotation correction (in degrees) applied across document pages.
  • is_rotation_valid: Boolean indicating whether rotation correction was valid for all pages.
  • pdf_path: Relative path to the original PDF file of the document.
  • pdf_total_pages: Total number of pages in the original PDF document.

languages

The dataset covers the 23 official languages of the European Union:

  • Bulgarian (BG)
  • Croatian (HR)
  • Czech (CS)
  • Dutch (NL)
  • English (EN)
  • Estonian (ET)
  • Finnish (FI)
  • French (FR)
  • German (DE)
  • Greek (EL)
  • Hungarian (HU)
  • Irish (GA)
  • Italian (IT)
  • Latvian (LV)
  • Lithuanian (LT)
  • Maltese (MT)
  • Polish (PL)
  • Portuguese (PT)
  • Romanian (RO)
  • Slovak (SK)
  • Slovenian (SL)
  • Spanish (ES)
  • Swedish (SV)

Older documents may not include all 23 languages due to EU membership timelines, but more recent documents are consistently available in all languages.

Citation Information

@inproceedings{ahmadi-etal-2026-lemur,
    title = "{LEMUR}: A Corpus for Robust Fine-Tuning of Multilingual Law Embedding Models for Retrieval",
    author = "Ahmadi, Narges Baba  and
      Strich, Jan  and
      Semmann, Martin  and
      Biemann, Chris",
    editor = "Baez Santamaria, Selene  and
      Somayajula, Sai Ashish  and
      Yamaguchi, Atsuki",
    booktitle = "Proceedings of the 19th Conference of the {E}uropean Chapter of the {A}ssociation for {C}omputational {L}inguistics (Volume 4: Student Research Workshop)",
    month = mar,
    year = "2026",
    address = "Rabat, Morocco",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2026.eacl-srw.18/",
    doi = "10.18653/v1/2026.eacl-srw.18",
    pages = "248--265",
    ISBN = "979-8-89176-383-8",
    abstract = "Large language models (LLMs) are increasingly used to access legal information. Yet, their deployment in multilingual legal settings is constrained by unreliable retrieval and the lack of domain-adapted, open-embedding models. In particular, existing multilingual legal corpora are not designed for semantic retrieval, and PDF-based legislative sources introduce substantial noise due to imperfect text extraction. To address these challenges, we introduce LEMUR, a large-scale multilingual corpus of EU environmental legislation constructed from 24,953 official EUR-Lex PDF documents covering 25 languages. We further propose the Lexical Content Score (LCS), a language-agnostic metric that quantifies the fidelity of PDF-to-text conversion by measuring lexical consistency against authoritative HTML versions. Building on LEMUR, we fine-tune three state-of-the-art multilingual embedding models using contrastive objectives in both monolingual and bilingual settings, reflecting realistic legal-retrieval scenarios. Experiments across low- and high-resource languages demonstrate that legal-domain fine-tuning consistently improves Top-k retrieval accuracy relative to strong baselines, with particularly pronounced gains for low-resource languages. Cross-lingual evaluations show that these improvements transfer to unseen languages, indicating that fine-tuning primarily enhances language-independent, content-level legal representations rather than language-specific cues. We publish code[GitHub Repository] and data[Hugging Face Dataset]."
}

Source and Licensing