Datasets:
celex_id stringlengths 9 15 | da_document stringlengths 2.22k 4.63M | da_summary stringlengths 1.79k 41.6k | en_document stringlengths 2.3k 4.62M | en_summary stringlengths 1.85k 39k |
|---|---|---|---|---|
12007L/TXT | "17.12.2007\nDA\nDen Europæiske Unions Tidende\nC 306/1\nLISSABONTRAKTATEN\nOM ÆNDRING AF TRAKTATE(...TRUNCATED) | "Lissabontraktaten\nRESUMÉ\nLissabontraktaten om ændring af traktaten om Den Europæiske Union og (...TRUNCATED) | "17.12.2007\nEN\nOfficial Journal of the European Union\nC 306/1\nTREATY OF LISBON\nAMENDING THE TRE(...TRUNCATED) | "The Treaty of Lisbon\nSUMMARY\nThe Treaty of Lisbon amending the Treaty on\n Eur(...TRUNCATED) |
12016A/TXT | "7.6.2016\nDA\nDen Europæiske Unions Tidende\nC 203/1\nKONSOLIDERET UDGAVE AF TRAKTATEN OM OPRETTEL(...TRUNCATED) | "Primærretten i Den Europæiske Union\nRESUMÉ AF:\nPrimærretten i EU\nHVAD ER PRIMÆRRETTEN?\nDet(...TRUNCATED) | "7.6.2016\nEN\nOfficial Journal of the European Union\nC 203/1\nCONSOLIDATED VERSION OF THE TREATY E(...TRUNCATED) | "The European Union’s primary law\nSUMMARY OF:\nEU primary law\nWHAT IS PRIMARY LAW?\nIt is the su(...TRUNCATED) |
12016E/PRO/02 | "DA\nDen Europæiske Unions Tidende\nC 202/206\nPROTOKOL (Nr. 2)\nOM ANVENDELSE AF NÆRHEDSPRINCIPPE(...TRUNCATED) | "Nærhedsprincippet\nRESUMÉ AF:\nArtikel 5 i traktaten om Den Europæiske Union — Fælles bestemm(...TRUNCATED) | "EN\nOfficial Journal of the European Union\nC 202/206\nPROTOCOL (No 2)\nON THE APPLICATION OF THE P(...TRUNCATED) | "The principle of subsidiarity\nSUMMARY OF:\nArticle 5 of the Treaty on European Union – common pr(...TRUNCATED) |
12016E/PRO/04 | "DA\nDen Europæiske Unions Tidende\nC 202/230\nPROTOKOL (Nr. 4)\nOM STATUTTEN FOR DET EUROPÆISKE S(...TRUNCATED) | "Den Europæiske Centralbank (ECB)\nRESUMÉ AF:\nProtokol (\nnr. 4\n) om statutten for Det Europæis(...TRUNCATED) | "EN\nOfficial Journal of the European Union\nC 202/230\nPROTOCOL (No 4)\nON THE STATUTE OF THE EUROP(...TRUNCATED) | "The European Central Bank (ECB)\nSUMMARY OF:\nProtocol (\nNo 4\n) – statute of the European Syste(...TRUNCATED) |
12016E126 | "7.6.2016\nDA\nDen Europæiske Unions Tidende\nC 202/99\nArtikel 126\n(tidl. artikel 104 i TEF)\n1. (...TRUNCATED) | "Europa-Kommissionens Generaldirektorat for Økonomiske og Finansielle Anliggenders rolle — GD ECF(...TRUNCATED) | "7.6.2016\nEN\nOfficial Journal of the European Union\nC 202/99\nArticle 126\n(ex Article 104 TEC)\n(...TRUNCATED) | "The role of the European Commission’s Directorate General for Economic and Financial Affairs — (...TRUNCATED) |
12016E134 | "7.6.2016\nDA\nDen Europæiske Unions Tidende\nC 202/105\nArtikel 134\n(tidl. artikel 114 i TEF)\n1.(...TRUNCATED) | "Økonomiske prognoser for Europa\nRESUMÉ AF:\nArtikel 134 i traktaten om Den Europæiske Unions fu(...TRUNCATED) | "7.6.2016\nEN\nOfficial Journal of the European Union\nC 202/105\nArticle 134\n(ex Article 114 TEC)\(...TRUNCATED) | "European economic forecasts\nSUMMARY OF:\nArticle 134 of the Treaty on the Functioning of the Europ(...TRUNCATED) |
12016M/PRO/07 | "DA\nDen Europæiske Unions Tidende\nC 202/266\nPROTOKOL (Nr. 7)\nVEDRØRENDE DEN EUROPÆISKE UNIONS(...TRUNCATED) | "Bruxellestraktaten (Fusionstraktaten)\nRESUMÉ AF:\nTraktat om oprettelse af et fælles Råd og en (...TRUNCATED) | "EN\nOfficial Journal of the European Union\nC 202/266\nPROTOCOL (No 7)\nON THE PRIVILEGES AND IMMUN(...TRUNCATED) | "Treaty of Brussels (Merger Treaty)\nSUMMARY OF:\nTreaty establishing a single Council and a single (...TRUNCATED) |
12016M017 | "7.6.2016\nDA\nDen Europæiske Unions Tidende\nC 202/25\nArtikel 17\n1. Kommissionen fremmer Union(...TRUNCATED) | "Europa-Kommissionen\nRESUMÉ AF:\nArtikel 17 i traktaten om Den Europæiske Union\nArtikel 18 i tra(...TRUNCATED) | "7.6.2016\nEN\nOfficial Journal of the European Union\nC 202/25\nArticle 17\n1. The Commission sha(...TRUNCATED) | "The European Commission\nSUMMARY OF:\nArticle 17 Treaty on European Union\nArticle 18 Treaty on Eur(...TRUNCATED) |
12016ME/TXT | "7.6.2016\nDA\nDen Europæiske Unions Tidende\nC 202/1\nKONSOLIDEREDE UDGAVER AF\nTRAKTATEN OM DEN E(...TRUNCATED) | "Traktaten om Den Europæiske Unions funktionsmåde\nRESUMÉ AF:\nTraktaten om Den Europæiske Union(...TRUNCATED) | "7.6.2016\nEN\nOfficial Journal of the European Union\nC 202/1\nCONSOLIDATED VERSIONS\nOF THE TREATY(...TRUNCATED) | "Treaty on the Functioning of the European Union\nSUMMARY OF:\nTreaty on the Functioning of the Euro(...TRUNCATED) |
22005A0204(02) | "4.2.2005\nDA\nDen Europæiske Unions Tidende\nL 32/1\nRÅDETS AFGØRELSE\naf 26. april 2004\nom Fæ(...TRUNCATED) | "Konvention om bevarelse og forvaltning af stærkt vandrende fiskebestande i det vestlige og central(...TRUNCATED) | "4.2.2005\nEN\nOfficial Journal of the European Union\nL 32/1\nCOUNCIL DECISION\nof 26 April 2004\no(...TRUNCATED) | "Convention on the conservation and management of highly migratory fish stocks in the western and ce(...TRUNCATED) |
EUR-Lex-Sum
A dataset of EU legislation paired with legislative summaries from EUR-Lex, covering Danish and English.
Built from the EU Publications Office CELLAR repository using SPARQL-based discovery and XHTML content extraction.
Dataset Description
Each record pairs a full EU legislative document with its official plain-language summary from the EUR-Lex Summaries of EU Legislation collection.
Configs
| Config | Records | Description |
|---|---|---|
all (default) |
1,605 | Bilingual DA+EN — every record has all four text fields |
da |
1,632 | Danish only — celex_id, da_document, da_summary |
en |
1,619 | English only — celex_id, en_document, en_summary |
The all config is the intersection of da and en.
Usage
from datasets import load_dataset
# Load default (bilingual) config
ds = load_dataset("oliverkinch/eur-lex-sum")
# Load Danish only
ds_da = load_dataset("oliverkinch/eur-lex-sum", "da")
# Load English only
ds_en = load_dataset("oliverkinch/eur-lex-sum", "en")
Fields
all config:
| Field | Type | Description |
|---|---|---|
celex_id |
string |
CELEX identifier for the legislation |
da_document |
string |
Full legislative text in Danish |
da_summary |
string |
Plain-language summary in Danish |
en_document |
string |
Full legislative text in English |
en_summary |
string |
Plain-language summary in English |
da config: celex_id, da_document, da_summary
en config: celex_id, en_document, en_summary
Statistics
| DA | EN | |
|---|---|---|
| Records | 1,632 | 1,619 |
| Mean document tokens | 22,706 | 24,758 |
| Median document tokens | 8,304 | 9,187 |
| Mean summary tokens | 910 | 986 |
| Median compression ratio | 10.1x | 10.4x |
Dataset Construction
Source
Documents and summaries were obtained from the EU Publications Office CELLAR repository via:
- SPARQL discovery — querying the CELLAR endpoint to find legislation with linked legislative summaries available as XHTML in Danish (and optionally English).
- Content extraction — fetching XHTML manifestations and extracting body text.
Filtering
The following filters were applied per language:
- Availability — remove records where document or summary content is missing (HTTP 404 from CELLAR).
- PDF scan artifacts — remove records containing
[NEW PAGE]markers (residual from scanned PDFs). - Deduplication — when multiple CELEX IDs share an identical summary, keep the record with the longest document.
- Short document removal — remove records where the document is shorter than or equal to the summary (by whitespace token count).
Text Cleaning
- Non-breaking spaces (
\xa0) normalized to regular spaces. - Consecutive newlines collapsed into paragraph boundaries.
- Blank lines and
.xmlidentifier lines removed.
Pipeline
Starting from 2,838 discovered CELEX IDs:
| Step | DA | EN |
|---|---|---|
| After availability filter | 2,536 | 2,521 |
| After scan filter | 2,536 | 2,521 |
| After deduplication | 1,701 | 1,684 |
| After short-document filter | 1,632 | 1,619 |
| Bilingual intersection | 1,605 | 1,605 |
Related Datasets
- dennlinger/eur-lex-sum — the original EUR-Lex-Sum dataset covering 24 EU languages. This dataset uses a similar methodology but sources data from CELLAR (the original EUR-Lex scraping endpoint is now behind WAF bot protection).
License
The legislative documents and summaries are sourced from EUR-Lex. EU legal documents are available under the reuse policy of the European Commission (CC BY 4.0 compatible).
- Downloads last month
- 55