Datasets:
Commit
·
a716622
1
Parent(s):
1bb5cf0
Update DocLayNet-small.py
Browse files- DocLayNet-small.py +2 -2
DocLayNet-small.py
CHANGED
|
@@ -150,7 +150,7 @@ class DocLayNet(datasets.GeneratorBasedBuilder):
|
|
| 150 |
citation=_CITATION,
|
| 151 |
)
|
| 152 |
|
| 153 |
-
def _split_generators(self, dl_manager):
|
| 154 |
# TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
|
| 155 |
# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
|
| 156 |
|
|
@@ -159,7 +159,7 @@ class DocLayNet(datasets.GeneratorBasedBuilder):
|
|
| 159 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 160 |
|
| 161 |
downloaded_file = dl_manager.download_and_extract("https://huggingface.co/datasets/pierreguillou/DocLayNet-small/resolve/main/data/dataset_small.zip")
|
| 162 |
-
|
| 163 |
return [
|
| 164 |
datasets.SplitGenerator(
|
| 165 |
name=datasets.Split.TRAIN,
|
|
|
|
| 150 |
citation=_CITATION,
|
| 151 |
)
|
| 152 |
|
| 153 |
+
def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
|
| 154 |
# TODO: This method is tasked with downloading/extracting the data and defining the splits depending on the configuration
|
| 155 |
# If several configurations are possible (listed in BUILDER_CONFIGS), the configuration selected by the user is in self.config.name
|
| 156 |
|
|
|
|
| 159 |
# By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
|
| 160 |
|
| 161 |
downloaded_file = dl_manager.download_and_extract("https://huggingface.co/datasets/pierreguillou/DocLayNet-small/resolve/main/data/dataset_small.zip")
|
| 162 |
+
|
| 163 |
return [
|
| 164 |
datasets.SplitGenerator(
|
| 165 |
name=datasets.Split.TRAIN,
|