srivarra commited on
Commit
797d300
1 Parent(s): f9e58e2

slight updates

Browse files
Files changed (1) hide show
  1. ark_example.py +3 -2
ark_example.py CHANGED
@@ -103,7 +103,7 @@ class ArkExample(datasets.GeneratorBasedBuilder):
103
  {
104
  "Channel Data": datasets.Sequence(datasets.Image()),
105
  "Channel Names": datasets.Sequence(datasets.Value("string")),
106
- "Data Path:": datasets.Value("string"),
107
  }
108
  )
109
  else: # This is an example to show how to have different features for "first_domain" and "second_domain"
@@ -140,11 +140,12 @@ class ArkExample(datasets.GeneratorBasedBuilder):
140
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
141
  urls = _URLS[self.config.name]
142
  data_dir = dl_manager.download_and_extract(urls)
 
143
  return [
144
  datasets.SplitGenerator(
145
  name="base_dataset",
146
  # These kwargs will be passed to _generate_examples
147
- gen_kwargs={"filepath": pathlib.Path(data_dir)},
148
  ),
149
  ]
150
 
 
103
  {
104
  "Channel Data": datasets.Sequence(datasets.Image()),
105
  "Channel Names": datasets.Sequence(datasets.Value("string")),
106
+ "Data Path": datasets.Value("string"),
107
  }
108
  )
109
  else: # This is an example to show how to have different features for "first_domain" and "second_domain"
 
140
  # By default the archives will be extracted and a path to a cached folder where they are extracted is returned instead of the archive
141
  urls = _URLS[self.config.name]
142
  data_dir = dl_manager.download_and_extract(urls)
143
+
144
  return [
145
  datasets.SplitGenerator(
146
  name="base_dataset",
147
  # These kwargs will be passed to _generate_examples
148
+ gen_kwargs={"filepath": data_dir},
149
  ),
150
  ]
151