ramonachristen
commited on
Commit
•
a2ba1af
1
Parent(s):
b1dd2ef
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
|
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 MultiLegalNegConfig(datasets.BuilderConfig):
|
34 |
|
35 |
def __init__(self, name:str, **kwargs):
|
36 |
+
super( MultiLegalNegConfig, self).__init__(**kwargs)
|
37 |
self.name = name
|
38 |
self.language = name.split("_")[0]
|
39 |
|
40 |
+
class MultiLegalNeg(datasets.GeneratorBasedBuilder):
|
41 |
|
42 |
+
BUILDER_CONFIG_CLASS = MultiLegalNegConfig
|
43 |
|
44 |
BUILDER_CONFIGS = [
|
45 |
+
MultiLegalNegConfig(f"{language}")
|
46 |
for language in _LANGUAGES + ['all']
|
47 |
]
|
48 |
DEFAULT_CONFIG_NAME = 'all_all'
|