mathiascreutz
commited on
Commit
•
6751593
1
Parent(s):
51a4b45
Testing configs
Browse files- opusparcus.py +3 -2
opusparcus.py
CHANGED
@@ -75,6 +75,8 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
|
|
75 |
|
76 |
VERSION = datasets.Version("1.1.0")
|
77 |
|
|
|
|
|
78 |
# This is an example of a dataset with multiple configurations.
|
79 |
# If you don't want/need to define several sub-sets in your dataset,
|
80 |
# just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
|
@@ -85,8 +87,7 @@ class Opusparcus(datasets.GeneratorBasedBuilder):
|
|
85 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
86 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
87 |
BUILDER_CONFIGS = [
|
88 |
-
OpusparcusConfig(lang=
|
89 |
-
OpusparcusConfig(lang="en", version=VERSION),
|
90 |
]
|
91 |
|
92 |
#DEFAULT_CONFIG_NAME = "test" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
|
|
75 |
|
76 |
VERSION = datasets.Version("1.1.0")
|
77 |
|
78 |
+
LANGS = [ "de", "en", "fi", "fr", "ru", "sv" ]
|
79 |
+
|
80 |
# This is an example of a dataset with multiple configurations.
|
81 |
# If you don't want/need to define several sub-sets in your dataset,
|
82 |
# just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
|
|
|
87 |
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
88 |
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
89 |
BUILDER_CONFIGS = [
|
90 |
+
OpusparcusConfig(lang=lang, version=VERSION) for lang in LANGS,
|
|
|
91 |
]
|
92 |
|
93 |
#DEFAULT_CONFIG_NAME = "test" # It's not mandatory to have a default configuration. Just use one if it make sense.
|