Update conceptnet_high_confidence.py
Browse files
conceptnet_high_confidence.py
CHANGED
@@ -57,8 +57,7 @@ class ConceptNetHighConfidence(datasets.GeneratorBasedBuilder):
|
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
59 |
downloaded_file = dl_manager.download_and_extract(_URLS)
|
60 |
-
return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[
|
61 |
-
for i in [datasets.Split.TRAIN, datasets.Split.VALIDATION]]
|
62 |
|
63 |
def _generate_examples(self, filepaths):
|
64 |
_key = 0
|
|
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
59 |
downloaded_file = dl_manager.download_and_extract(_URLS)
|
60 |
+
return [datasets.SplitGenerator(name=i, gen_kwargs={"filepaths": downloaded_file[i]}) for i in _URLS.keys()]
|
|
|
61 |
|
62 |
def _generate_examples(self, filepaths):
|
63 |
_key = 0
|