asahi417 commited on
Commit
5e7075a
1 Parent(s): d6a858c

Update conceptnet_high_confidence.py

Browse files
Files changed (1) hide show
  1. conceptnet_high_confidence.py +1 -2
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[str(i)]})
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