Datasets:

ArXiv:
License:
NamCyan commited on
Commit
cbe16c5
1 Parent(s): a1db73c
Files changed (1) hide show
  1. the-vault.py +3 -3
the-vault.py CHANGED
@@ -127,15 +127,15 @@ class TheVault(datasets.GeneratorBasedBuilder):
127
  return generators
128
 
129
  else:
130
- num_shards = num_shard_split[self.config.split]
131
  data_files = [
132
- f"data/{self.config.split}-{_index:05d}-of-{num_shards:05d}.parquet"
133
  for _index in range(num_shards)
134
  ]
135
  files = dl_manager.download(data_files)
136
  return [
137
  datasets.SplitGenerator(
138
- name=self.config.split,
139
  gen_kwargs={
140
  "files": files,
141
  },
 
127
  return generators
128
 
129
  else:
130
+ num_shards = num_shard_split[self.config.split_set]
131
  data_files = [
132
+ f"data/{self.config.split_set}-{_index:05d}-of-{num_shards:05d}.parquet"
133
  for _index in range(num_shards)
134
  ]
135
  files = dl_manager.download(data_files)
136
  return [
137
  datasets.SplitGenerator(
138
+ name=self.config.split_set,
139
  gen_kwargs={
140
  "files": files,
141
  },