Datasets:
Update EcclesialSchematisms.py
Browse files- EcclesialSchematisms.py +2 -2
EcclesialSchematisms.py
CHANGED
|
@@ -75,10 +75,10 @@ class EcclesiaeSchematisms(datasets.GeneratorBasedBuilder):
|
|
| 75 |
|
| 76 |
return [datasets.SplitGenerator(
|
| 77 |
name=datasets.Split.TRAIN,
|
| 78 |
-
gen_kwargs={"images_tars": images_tars, "labels": labels[0]} # labels is a list, get first item
|
| 79 |
)]
|
| 80 |
|
| 81 |
-
def _generate_examples(self, images_tars, labels):
|
| 82 |
# 1) load labels (unchanged, but use dl_manager.open for robustness)
|
| 83 |
annotations = {}
|
| 84 |
logger.info("Loading annotations from labels file...")
|
|
|
|
| 75 |
|
| 76 |
return [datasets.SplitGenerator(
|
| 77 |
name=datasets.Split.TRAIN,
|
| 78 |
+
gen_kwargs={"images_tars": images_tars, "labels": labels[0], "dl_manager": dl_manager} # labels is a list, get first item
|
| 79 |
)]
|
| 80 |
|
| 81 |
+
def _generate_examples(self, images_tars, labels, dl_manager):
|
| 82 |
# 1) load labels (unchanged, but use dl_manager.open for robustness)
|
| 83 |
annotations = {}
|
| 84 |
logger.info("Loading annotations from labels file...")
|