--- annotations_creators: - found language: - bg - cs - da - de - el - en - es - et - fi - fr - ga - hr - hu - it - lt - lv - mt - nl - pl - pt - ro - sk - sl - sv language_creators: - found license: - mit multilinguality: - multilingual size_categories: - 1M>> {'eval_loss': 0.0018887673504650593, 'eval_nDCG@5': 0.8072531683578489, 'eval_runtime': 663.8582, 'eval_samples_per_second': 32.373, 'eval_steps_per_second': 4.048, 'epoch': 20.0} ``` ### Out-of-Scope Use [More Information Needed] ## Dataset Structure This dataset is divided into multiple split by _Sector x Language x Format_ Sector refers to the kind of Document it belongs to: - **0:** Consolidated acts - **1:** Treaties - **2:** International agreements - **3:** Legislation - **4:** Complementary legislation - **5:** Preparatory acts and working documents - **6:** Case-law - **7:** National transposition measures - **8:** References to national case-law concerning EU law - **9:** Parliamentary questions - **C:** Other documents published in the Official Journal C series - **E:** EFTA documents Language refers to each of the 24 official European Languages that were included at the date of the dataset creation: - BG ~ Bulgarian - CS ~ Czech - DA ~ Danish - DE ~ German - EL ~ Greek - EN ~ English - ES ~ Spanish - ET ~ Estonian - FI ~ Finnish - FR ~ French - GA ~ Irish - HR ~ Croatian - HU ~ Hungarian - IT ~ Italian - LT ~ Lithuanian - LV ~ Latvian - MT ~ Maltese - NL ~ Dutch - PL ~ Polish - PT ~ Portuguese - RO ~ Romanian - SK ~ Slovak - SL ~ Slovenian - SV ~ Swedish Format refers to plain Text (default) or HTML format (.html) > Note: Plain Text contains generally more documents because not all documents were available in HTML format but those that were are included in both formats Those Splits are named the following way: `{sector}.{lang}[.html]` For Example: - `3.EN` would be English legislative documents in plain text format - `3.EN.html` would be the same in HTML Format Each _Sector_ has its own set of meta data:
Sector 0 (Consolidated acts)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty

Sector 1 (Treaties)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _current_consolidated_version_ ~ date when this version of the document was consolidated `Format DD/MM/YYYY` - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information

Sector 2 (International agreements)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information - _latest_consolidated_version_ ~ `Format DD/MM/YYYY` - _current_consolidated_version_ ~ `Format DD/MM/YYYY`

Sector 3 (Legislation)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information - _latest_consolidated_version_ ~ `Format DD/MM/YYYY` - _current_consolidated_version_ ~ `Format DD/MM/YYYY`

Sector 4 (Complementary legislation)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information - _latest_consolidated_version_ ~ `Format DD/MM/YYYY` - _current_consolidated_version_ ~ `Format DD/MM/YYYY`

Sector 5 (Preparatory acts and working documents)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information - _latest_consolidated_version_ ~ `Format DD/MM/YYYY`

Sector 6 (Case-law)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information - _case-law_directory_code_before_lisbon_ ~ Classification system used for case law before Treaty of Lisbon came into effect (2009), each code reflects a particular area of EU law

Sector 7 (National transposition measures)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _transposed_legal_acts_ ~ national laws that exist in EU member states as a direct result of the need to comply with EU directives

Sector 8 (References to national case-law concerning EU law)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _case-law_directory_code_before_lisbon_ ~ Classification system used for case law before Treaty of Lisbon came into effect (2009), each code reflects a particular area of EU law - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information

Sector 9 (Parliamentary questions)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information

Sector C (Other documents published in the Official Journal C series)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information

Sector E (EFTA documents)

- _celex_id_ ~ Unique Identifier for each document - _text_cleaned_ (Plain Text) **or** _text_html_raw_ (HTML Format) - _form_ ~ Kind of Document e.g. Consolidated text, or Treaty - _directory_code_ ~ Information to structure documents in some kind of directory structure by topic e.g. `'03.50.30.00 Agriculture / Approximation of laws and health measures / Animal health and zootechnics'` - _subject_matter_ ~ Keywords that provide general overview of content in a document see [here](https://eur-lex.europa.eu/content/e-learning/browsing_options.html) for more information - _eurovoc_ ~ Keywords that describe document content based on the European Vocabulary see [here](https://eur-lex.europa.eu/browse/eurovoc.html) for more information

## Dataset Creation ### Curation Rationale This dataset was created for the creation and/or evaluation of pretrained Legal Language Models. ### Source Data #### Data Collection and Processing We used the [EURLEX-Web-Scrapper Repo](https://github.com/JP-SystemsX/Eurlex-Web-Scrapper) for the data collection process. #### Who are the source data producers? The Source data stems from the [EURLEX-Website](https://eur-lex.europa.eu/) and was therefore produced by various entities within the European Union #### Personal and Sensitive Information No Personal or Sensitive Information is included to the best of our knowledge. ## Bias, Risks, and Limitations - We removed HTML documents from which we couldn't extract plain text under the assumption that those are **corrupted files**. However, we can't guarantee that we removed all. - The Extraction of plain text from legal HTML documents can lead to **formatting issues** e.g. the extraction of text from tables might mix up the order such that it becomes nearly incomprehensible. - This dataset might contain many **missing values** in the meta-data columns as not every document was annotated in the same way [More Information Needed] ### Recommendations - Consider Removing rows with missing values for the task before training a model on it ## Citation [optional] **BibTeX:** [More Information Needed] **APA:** [More Information Needed] ## Glossary [optional] [More Information Needed] ## More Information [optional] [More Information Needed] ## Dataset Card Authors [optional] [More Information Needed] ## Dataset Card Contact [More Information Needed]