update
Browse files- 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.
|
| 131 |
data_files = [
|
| 132 |
-
f"data/{self.config.
|
| 133 |
for _index in range(num_shards)
|
| 134 |
]
|
| 135 |
files = dl_manager.download(data_files)
|
| 136 |
return [
|
| 137 |
datasets.SplitGenerator(
|
| 138 |
-
name=self.config.
|
| 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 |
},
|