Datasets:
Tasks:
Text Classification
Modalities:
Text
Sub-tasks:
multi-label-classification
Languages:
English
Size:
10K - 100K
License:
Jonathan Li
commited on
Commit
·
d5b55d2
1
Parent(s):
d86df6b
Update split
Browse files- README.md +0 -1
- dataset_infos.json +60 -1
- eurlex.py +1 -1
README.md
CHANGED
|
@@ -54,7 +54,6 @@ pretty_name: the EUR-Lex dataset
|
|
| 54 |
- **Repository:** http://nlp.cs.aueb.gr/software_and_datasets/EURLEX57K/
|
| 55 |
- **Paper:** https://www.aclweb.org/anthology/P19-1636/
|
| 56 |
- **Leaderboard:** N/A
|
| 57 |
-
- **Point of Contact:** [Ilias Chalkidis](mailto:ihalk@aueb.gr)
|
| 58 |
|
| 59 |
### Dataset Summary
|
| 60 |
|
|
|
|
| 54 |
- **Repository:** http://nlp.cs.aueb.gr/software_and_datasets/EURLEX57K/
|
| 55 |
- **Paper:** https://www.aclweb.org/anthology/P19-1636/
|
| 56 |
- **Leaderboard:** N/A
|
|
|
|
| 57 |
|
| 58 |
### Dataset Summary
|
| 59 |
|
dataset_infos.json
CHANGED
|
@@ -1 +1,60 @@
|
|
| 1 |
-
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"eurlex57k": {
|
| 3 |
+
"description": "EURLEX57K contains 57k legislative documents in English from EUR-Lex portal, annotated with EUROVOC concepts.\n",
|
| 4 |
+
"citation": "@inproceedings{chalkidis-etal-2019-large,\n title = \"Large-Scale Multi-Label Text Classification on {EU} Legislation\",\n author = \"Chalkidis, Ilias and Fergadiotis, Emmanouil and Malakasiotis, Prodromos and Androutsopoulos, Ion\",\n booktitle = \"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics\",\n year = \"2019\",\n address = \"Florence, Italy\",\n publisher = \"Association for Computational Linguistics\",\n url = \"https://www.aclweb.org/anthology/P19-1636\",\n doi = \"10.18653/v1/P19-1636\",\n pages = \"6314--6322\"\n}\n",
|
| 5 |
+
"homepage": "http://nlp.cs.aueb.gr/software_and_datasets/EURLEX57K/",
|
| 6 |
+
"license": "CC BY-SA (Creative Commons / Attribution-ShareAlike)",
|
| 7 |
+
"features": {
|
| 8 |
+
"celex_id": { "dtype": "string", "id": null, "_type": "Value" },
|
| 9 |
+
"title": { "dtype": "string", "id": null, "_type": "Value" },
|
| 10 |
+
"text": { "dtype": "string", "id": null, "_type": "Value" },
|
| 11 |
+
"eurovoc_concepts": {
|
| 12 |
+
"feature": { "dtype": "string", "id": null, "_type": "Value" },
|
| 13 |
+
"length": -1,
|
| 14 |
+
"id": null,
|
| 15 |
+
"_type": "Sequence"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
"post_processed": null,
|
| 19 |
+
"supervised_keys": null,
|
| 20 |
+
"builder_name": "eurlex",
|
| 21 |
+
"config_name": "eurlex57k",
|
| 22 |
+
"version": {
|
| 23 |
+
"version_str": "1.1.0",
|
| 24 |
+
"description": null,
|
| 25 |
+
"major": 1,
|
| 26 |
+
"minor": 1,
|
| 27 |
+
"patch": 0
|
| 28 |
+
},
|
| 29 |
+
"splits": {
|
| 30 |
+
"train": {
|
| 31 |
+
"name": "train",
|
| 32 |
+
"num_bytes": 167603718,
|
| 33 |
+
"num_examples": 45000,
|
| 34 |
+
"dataset_name": "eurlex"
|
| 35 |
+
},
|
| 36 |
+
"test": {
|
| 37 |
+
"name": "test",
|
| 38 |
+
"num_bytes": 22046706,
|
| 39 |
+
"num_examples": 6000,
|
| 40 |
+
"dataset_name": "eurlex"
|
| 41 |
+
},
|
| 42 |
+
"validation": {
|
| 43 |
+
"name": "validation",
|
| 44 |
+
"num_bytes": 21942574,
|
| 45 |
+
"num_examples": 6000,
|
| 46 |
+
"dataset_name": "eurlex"
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"download_checksums": {
|
| 50 |
+
"http://archive.org/download/EURLEX57K/dataset.zip": {
|
| 51 |
+
"num_bytes": 50289403,
|
| 52 |
+
"checksum": "dc6830ce8ea49aea049989c4a8253b12d0fb3665fc336d830cb07b9bd28c0f92"
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
"download_size": 50289403,
|
| 56 |
+
"post_processing_size": null,
|
| 57 |
+
"dataset_size": 211592998,
|
| 58 |
+
"size_in_bytes": 261882401
|
| 59 |
+
}
|
| 60 |
+
}
|
eurlex.py
CHANGED
|
@@ -126,6 +126,6 @@ class EURLEX(datasets.GeneratorBasedBuilder):
|
|
| 126 |
yield id_, {
|
| 127 |
"celex_id": data["celex_id"],
|
| 128 |
"title": data["title"],
|
| 129 |
-
"text":
|
| 130 |
"eurovoc_concepts": data["eurovoc_concepts"],
|
| 131 |
}
|
|
|
|
| 126 |
yield id_, {
|
| 127 |
"celex_id": data["celex_id"],
|
| 128 |
"title": data["title"],
|
| 129 |
+
"text": data["header"] + "\n" + data["recitals"],
|
| 130 |
"eurovoc_concepts": data["eurovoc_concepts"],
|
| 131 |
}
|