khalidalt commited on
Commit
d83080d
·
verified ·
1 Parent(s): b15d7dc

Update xtd_11.py

Browse files
Files changed (1) hide show
  1. xtd_11.py +3 -3
xtd_11.py CHANGED
@@ -2,7 +2,7 @@ from datasets import DatasetDict, load_dataset, SplitGenerator, Split
2
  import datasets
3
 
4
  _Base_url = "https://huggingface.co/datasets/khalidalt/xtd_11/resolve/main/test/"
5
- _Languages = ["ar", "de", "en", "es", "fr", "jp", "ko", "pl", "ru", "tr", "zh"] # List all your languages here
6
 
7
  class XTD_11Config(datasets.BuilderConfig):
8
  """ Builder config for Joud Dataset. """
@@ -14,7 +14,7 @@ class XTD_11Config(datasets.BuilderConfig):
14
 
15
  self.subset = [subset]
16
  else:
17
- self.subset = _SUBSETS
18
 
19
 
20
  class XTD_11(datasets.GeneratorBasedBuilder):
@@ -25,7 +25,7 @@ class XTD_11(datasets.GeneratorBasedBuilder):
25
  subset=subset,
26
  version=datasets.Version("1.1.0", ""),
27
  description='')
28
- for subset in _SUBSETS
29
  ] + [
30
  XTD_11Config(
31
  name = "all",
 
2
  import datasets
3
 
4
  _Base_url = "https://huggingface.co/datasets/khalidalt/xtd_11/resolve/main/test/"
5
+ _Languages = ["ar", "de", "en", "es", "fr", "jp", "ko", "pl", "ru", "tr", "zh", "all"] # List all your languages here
6
 
7
  class XTD_11Config(datasets.BuilderConfig):
8
  """ Builder config for Joud Dataset. """
 
14
 
15
  self.subset = [subset]
16
  else:
17
+ self.subset = _Languages
18
 
19
 
20
  class XTD_11(datasets.GeneratorBasedBuilder):
 
25
  subset=subset,
26
  version=datasets.Version("1.1.0", ""),
27
  description='')
28
+ for subset in _Languages
29
  ] + [
30
  XTD_11Config(
31
  name = "all",