Update sciarg.py
Browse files
sciarg.py
CHANGED
|
@@ -14,22 +14,10 @@ logger = logging.getLogger(__name__)
|
|
| 14 |
class BratConfig(BuilderConfig):
|
| 15 |
"""BuilderConfig for BRAT."""
|
| 16 |
|
| 17 |
-
url: str =
|
| 18 |
-
description: Optional[str] =
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
scientific writing.'''
|
| 22 |
-
citation: Optional[str] = """|
|
| 23 |
-
@inproceedings{lauscher2018b,
|
| 24 |
-
title = {An argument-annotated corpus of scientific publications},
|
| 25 |
-
booktitle = {Proceedings of the 5th Workshop on Mining Argumentation},
|
| 26 |
-
publisher = {Association for Computational Linguistics},
|
| 27 |
-
author = {Lauscher, Anne and Glava\v{s}, Goran and Ponzetto, Simone Paolo},
|
| 28 |
-
address = {Brussels, Belgium},
|
| 29 |
-
year = {2018},
|
| 30 |
-
pages = {40–46}
|
| 31 |
-
}"""
|
| 32 |
-
homepage: Optional[str] = "https://github.com/anlausch/ArguminSci"
|
| 33 |
|
| 34 |
subdirectory_mapping: Optional[Dict[str, str]] = None
|
| 35 |
file_name_blacklist: Optional[List[str]] = None
|
|
@@ -39,7 +27,7 @@ class BratConfig(BuilderConfig):
|
|
| 39 |
|
| 40 |
class Brat(datasets.GeneratorBasedBuilder):
|
| 41 |
BUILDER_CONFIG_CLASS = BratConfig
|
| 42 |
-
|
| 43 |
def _info(self):
|
| 44 |
return DatasetInfo(
|
| 45 |
description=self.config.description,
|
|
@@ -346,4 +334,4 @@ class Brat(datasets.GeneratorBasedBuilder):
|
|
| 346 |
},
|
| 347 |
)
|
| 348 |
for subdir, split in subdirectory_mapping.items()
|
| 349 |
-
]
|
|
|
|
| 14 |
class BratConfig(BuilderConfig):
|
| 15 |
"""BuilderConfig for BRAT."""
|
| 16 |
|
| 17 |
+
url: str = None # type: ignore
|
| 18 |
+
description: Optional[str] = None
|
| 19 |
+
citation: Optional[str] = None
|
| 20 |
+
homepage: Optional[str] = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
subdirectory_mapping: Optional[Dict[str, str]] = None
|
| 23 |
file_name_blacklist: Optional[List[str]] = None
|
|
|
|
| 27 |
|
| 28 |
class Brat(datasets.GeneratorBasedBuilder):
|
| 29 |
BUILDER_CONFIG_CLASS = BratConfig
|
| 30 |
+
|
| 31 |
def _info(self):
|
| 32 |
return DatasetInfo(
|
| 33 |
description=self.config.description,
|
|
|
|
| 334 |
},
|
| 335 |
)
|
| 336 |
for subdir, split in subdirectory_mapping.items()
|
| 337 |
+
]
|