ramonachristen
commited on
Commit
•
b1dd2ef
1
Parent(s):
cee65f8
Update multi_lingual_negation_scope_resolution.py
Browse files
multi_lingual_negation_scope_resolution.py
CHANGED
@@ -30,19 +30,19 @@ _LANGUAGES = [
|
|
30 |
]
|
31 |
|
32 |
|
33 |
-
class
|
34 |
|
35 |
def __init__(self, name:str, **kwargs):
|
36 |
-
super(
|
37 |
self.name = name
|
38 |
self.language = name.split("_")[0]
|
39 |
|
40 |
class multi_lingual_negation_scope_resolution(datasets.GeneratorBasedBuilder):
|
41 |
|
42 |
-
BUILDER_CONFIG_CLASS =
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
-
|
46 |
for language in _LANGUAGES + ['all']
|
47 |
]
|
48 |
DEFAULT_CONFIG_NAME = 'all_all'
|
|
|
30 |
]
|
31 |
|
32 |
|
33 |
+
class multi_lingual_negation_scope_resolution_config(datasets.BuilderConfig):
|
34 |
|
35 |
def __init__(self, name:str, **kwargs):
|
36 |
+
super( multi_lingual_negation_scope_resolution_config, self).__init__(**kwargs)
|
37 |
self.name = name
|
38 |
self.language = name.split("_")[0]
|
39 |
|
40 |
class multi_lingual_negation_scope_resolution(datasets.GeneratorBasedBuilder):
|
41 |
|
42 |
+
BUILDER_CONFIG_CLASS = multi_lingual_negation_scope_resolution_config
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
+
multi_lingual_negation_scope_resolution_config(f"{language}")
|
46 |
for language in _LANGUAGES + ['all']
|
47 |
]
|
48 |
DEFAULT_CONFIG_NAME = 'all_all'
|