test
Browse files- the-vault-function.py +2 -3
the-vault-function.py
CHANGED
@@ -27,8 +27,7 @@ _HOMEPAGE = "https://huggingface.co/Fsoft-AIC"
|
|
27 |
|
28 |
_TEXT_TO_LANG = {}
|
29 |
for lang in _LANG_TO_TEXT:
|
30 |
-
|
31 |
-
_TEXT_TO_LANG[extension] = lang
|
32 |
|
33 |
|
34 |
|
@@ -121,7 +120,7 @@ class TheVaultFunction(datasets.GeneratorBasedBuilder):
|
|
121 |
generators = []
|
122 |
split_set = list(self.config.split_set)
|
123 |
languages = list(self.config.languages)
|
124 |
-
|
125 |
if "all" in split_set:
|
126 |
split_set = _SPLIT_CONFIGS[1:]
|
127 |
|
|
|
27 |
|
28 |
_TEXT_TO_LANG = {}
|
29 |
for lang in _LANG_TO_TEXT:
|
30 |
+
_TEXT_TO_LANG[_LANG_TO_TEXT[lang]] = lang
|
|
|
31 |
|
32 |
|
33 |
|
|
|
120 |
generators = []
|
121 |
split_set = list(self.config.split_set)
|
122 |
languages = list(self.config.languages)
|
123 |
+
|
124 |
if "all" in split_set:
|
125 |
split_set = _SPLIT_CONFIGS[1:]
|
126 |
|