ArneBinder
commited on
Commit
•
3cfad37
1
Parent(s):
1015ee3
fix again https://huggingface.co/datasets/pie/aae2/discussions/1 (#3)
Browse files- fix again https://huggingface.co/datasets/pie/aae2/discussions/1 (64ddf649c80481dc63d8e601c893c32e0298bca5)
aae2.py
CHANGED
@@ -131,11 +131,12 @@ class ArgumentAnnotatedEssaysV2Config(BratConfig):
|
|
131 |
conversion_method: either "connect_first" or "connect_all", see convert_aae2_claim_attributions_to_relations
|
132 |
**kwargs: keyword arguments forwarded to super.
|
133 |
"""
|
134 |
-
super().__init__(**kwargs)
|
135 |
self.conversion_method = conversion_method
|
136 |
|
137 |
|
138 |
class ArgumentAnnotatedEssaysV2(BratBuilder):
|
|
|
139 |
BASE_DATASET_PATH = "DFKI-SLT/brat"
|
140 |
BASE_DATASET_REVISION = "bb8c37d84ddf2da1e691d226c55fef48fd8149b5"
|
141 |
|
@@ -148,7 +149,6 @@ class ArgumentAnnotatedEssaysV2(BratBuilder):
|
|
148 |
BUILDER_CONFIGS = [
|
149 |
ArgumentAnnotatedEssaysV2Config(
|
150 |
name=BratBuilder.DEFAULT_CONFIG_NAME,
|
151 |
-
merge_fragmented_spans=True,
|
152 |
conversion_method="connect_first",
|
153 |
),
|
154 |
]
|
|
|
131 |
conversion_method: either "connect_first" or "connect_all", see convert_aae2_claim_attributions_to_relations
|
132 |
**kwargs: keyword arguments forwarded to super.
|
133 |
"""
|
134 |
+
super().__init__(merge_fragmented_spans=True, **kwargs)
|
135 |
self.conversion_method = conversion_method
|
136 |
|
137 |
|
138 |
class ArgumentAnnotatedEssaysV2(BratBuilder):
|
139 |
+
BUILDER_CONFIG_CLASS = ArgumentAnnotatedEssaysV2Config
|
140 |
BASE_DATASET_PATH = "DFKI-SLT/brat"
|
141 |
BASE_DATASET_REVISION = "bb8c37d84ddf2da1e691d226c55fef48fd8149b5"
|
142 |
|
|
|
149 |
BUILDER_CONFIGS = [
|
150 |
ArgumentAnnotatedEssaysV2Config(
|
151 |
name=BratBuilder.DEFAULT_CONFIG_NAME,
|
|
|
152 |
conversion_method="connect_first",
|
153 |
),
|
154 |
]
|