Datasets:

ArXiv:
License:
NamCyan commited on
Commit
2ddc023
1 Parent(s): 94d4a2b

Update the-vault-function.py

Browse files
Files changed (1) hide show
  1. the-vault-function.py +2 -2
the-vault-function.py CHANGED
@@ -130,11 +130,11 @@ class TheVaultFunctionConfig(datasets.BuilderConfig):
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:
 
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. Force to only 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: