Datasets:

ArXiv:
License:
NamCyan commited on
Commit
2bbcda8
1 Parent(s): 4550928
Files changed (1) hide show
  1. the-vault.py +1 -2
the-vault.py CHANGED
@@ -59,8 +59,7 @@ class TheVaultConfig(datasets.BuilderConfig):
59
  languages = set(languages)
60
 
61
  assert all([language in _LANG_CONFIGS for language in languages]), f"Language not in {_LANG_CONFIGS}."
62
- if split_set != "all":
63
- assert split_set in num_shard_split, "split_set {} not in {}.".format(split_set, list(num_shard_split.keys()))
64
 
65
  if "all" in languages:
66
  assert len(languages)==1, f"Passed 'all' together with other languages. {languages}"
 
59
  languages = set(languages)
60
 
61
  assert all([language in _LANG_CONFIGS for language in languages]), f"Language not in {_LANG_CONFIGS}."
62
+ assert split_set in splits, "split_set {} not in {}.".format(split_set, splits)
 
63
 
64
  if "all" in languages:
65
  assert len(languages)==1, f"Passed 'all' together with other languages. {languages}"