Commit ·
ae1a006
1
Parent(s): fbca85b
Support streaming (#1)
Browse files- Do not try to extract non-compressed files (8192762dc21c8d7c6786f5fe76c1b7ce1b69bc39)
Co-authored-by: Albert Villanova <albertvillanova@users.noreply.huggingface.co>
- genetag.py +1 -1
genetag.py
CHANGED
|
@@ -161,7 +161,7 @@ class GenetagDataset(datasets.GeneratorBasedBuilder):
|
|
| 161 |
def _split_generators(self, dl_manager) -> List[datasets.SplitGenerator]:
|
| 162 |
"""Returns SplitGenerators."""
|
| 163 |
urls = _URLS
|
| 164 |
-
data_dir = dl_manager.
|
| 165 |
annotation_type = self.config.subset_id.split("genetag")[
|
| 166 |
-1
|
| 167 |
] # correct or gold annotations
|
|
|
|
| 161 |
def _split_generators(self, dl_manager) -> List[datasets.SplitGenerator]:
|
| 162 |
"""Returns SplitGenerators."""
|
| 163 |
urls = _URLS
|
| 164 |
+
data_dir = dl_manager.download(urls)
|
| 165 |
annotation_type = self.config.subset_id.split("genetag")[
|
| 166 |
-1
|
| 167 |
] # correct or gold annotations
|