Datasets:

toniwuest commited on
Commit
2df7110
·
verified ·
1 Parent(s): 9b49a48

Update CLEVR-Sudoku.py

Browse files
Files changed (1) hide show
  1. CLEVR-Sudoku.py +5 -0
CLEVR-Sudoku.py CHANGED
@@ -135,6 +135,9 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
135
  # Download and extract the dataset archive
136
  archive_path = dl_manager.download_and_extract(self.config.data_url)
137
 
 
 
 
138
  # Define the dataset splits
139
  return [
140
  datasets.SplitGenerator(
@@ -168,6 +171,8 @@ class CLEVRSudoku(datasets.GeneratorBasedBuilder):
168
 
169
  def _generate_examples(self, archive_path, dl_manager):
170
  """Yields examples from the archive, assuming JSON files inside a 'json' folder."""
 
 
171
  # This uses `dl_manager.iter_archive` to iterate over files in the archive
172
  with open(archive_path, "rb") as f:
173
  for i, (file_name, file_handle) in enumerate(dl_manager.iter_archive(f)):
 
135
  # Download and extract the dataset archive
136
  archive_path = dl_manager.download_and_extract(self.config.data_url)
137
 
138
+ print("archive path in split generators")
139
+ print(archive_path)
140
+
141
  # Define the dataset splits
142
  return [
143
  datasets.SplitGenerator(
 
171
 
172
  def _generate_examples(self, archive_path, dl_manager):
173
  """Yields examples from the archive, assuming JSON files inside a 'json' folder."""
174
+ print("archive path in generate examples")
175
+ print(archive_path)
176
  # This uses `dl_manager.iter_archive` to iterate over files in the archive
177
  with open(archive_path, "rb") as f:
178
  for i, (file_name, file_handle) in enumerate(dl_manager.iter_archive(f)):