Rename the-vault.py to the-vault-function.py
Browse files
the-vault.py → the-vault-function.py
RENAMED
@@ -41,7 +41,7 @@ num_shard_split = {
|
|
41 |
}
|
42 |
_SPLIT_CONFIGS = ["all"] + list(num_shard_split.keys())
|
43 |
|
44 |
-
class
|
45 |
"""BuilderConfig for The Vault dataset."""
|
46 |
|
47 |
def __init__(self, *args, languages=["all"], split_set= ["all"], **kwargs):
|
@@ -75,13 +75,13 @@ class TheVaultConfig(datasets.BuilderConfig):
|
|
75 |
self.split_set= split_set
|
76 |
|
77 |
|
78 |
-
class
|
79 |
"""The Vault dataset."""
|
80 |
|
81 |
VERSION = datasets.Version("1.0.0")
|
82 |
|
83 |
-
BUILDER_CONFIG_CLASS =
|
84 |
-
BUILDER_CONFIGS = [
|
85 |
DEFAULT_CONFIG_NAME = "all-all"
|
86 |
|
87 |
|
|
|
41 |
}
|
42 |
_SPLIT_CONFIGS = ["all"] + list(num_shard_split.keys())
|
43 |
|
44 |
+
class TheVaultFunctionConfig(datasets.BuilderConfig):
|
45 |
"""BuilderConfig for The Vault dataset."""
|
46 |
|
47 |
def __init__(self, *args, languages=["all"], split_set= ["all"], **kwargs):
|
|
|
75 |
self.split_set= split_set
|
76 |
|
77 |
|
78 |
+
class TheVaultFunction(datasets.GeneratorBasedBuilder):
|
79 |
"""The Vault dataset."""
|
80 |
|
81 |
VERSION = datasets.Version("1.0.0")
|
82 |
|
83 |
+
BUILDER_CONFIG_CLASS = TheVaultFunctionConfig
|
84 |
+
BUILDER_CONFIGS = [TheVaultFunctionConfig(languages=[lang], split_set=[spl]) for lang in _LANG_CONFIGS for spl in _SPLIT_CONFIGS]
|
85 |
DEFAULT_CONFIG_NAME = "all-all"
|
86 |
|
87 |
|