Datasets:
Tasks:
Text Classification
Sub-tasks:
multi-label-classification
Languages:
English
Size:
10K<n<100K
License:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
eurlex.py
CHANGED
|
@@ -118,7 +118,7 @@ class EURLEX(datasets.GeneratorBasedBuilder):
|
|
| 118 |
def _generate_examples(
|
| 119 |
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 120 |
):
|
| 121 |
-
"""
|
| 122 |
|
| 123 |
with open(filepath, encoding="utf-8") as f:
|
| 124 |
for id_, row in enumerate(f):
|
|
|
|
| 118 |
def _generate_examples(
|
| 119 |
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 120 |
):
|
| 121 |
+
"""Yields examples as (key, example) tuples."""
|
| 122 |
|
| 123 |
with open(filepath, encoding="utf-8") as f:
|
| 124 |
for id_, row in enumerate(f):
|