Update the-vault-function.py
Browse files- the-vault-function.py +5 -2
the-vault-function.py
CHANGED
@@ -129,9 +129,12 @@ class TheVaultFunctionConfig(datasets.BuilderConfig):
|
|
129 |
|
130 |
if "all" in split_set:
|
131 |
assert len(split_set)==1, f"Passed 'all' together with other split sets. {split_set}"
|
132 |
-
|
|
|
|
|
|
|
133 |
for split in split_set:
|
134 |
-
|
135 |
raise ValueError(f"Split set 'train' (or 'train/full) already contains '{split}'. Please only include one.")
|
136 |
|
137 |
if "all" in languages:
|
|
|
129 |
|
130 |
if "all" in split_set:
|
131 |
assert len(split_set)==1, f"Passed 'all' together with other split sets. {split_set}"
|
132 |
+
if "train" in split_set and "train/full" in split_set:
|
133 |
+
print("Split set train and train/full are similar. Cast to train/full.")
|
134 |
+
split_set.remove("train")
|
135 |
+
if "train" in split_set or "train/full" in split_set:
|
136 |
for split in split_set:
|
137 |
+
"train" in split and (split != "train" and split != "train/full")::
|
138 |
raise ValueError(f"Split set 'train' (or 'train/full) already contains '{split}'. Please only include one.")
|
139 |
|
140 |
if "all" in languages:
|