dfki-nlp commited on
Commit
8a13deb
·
1 Parent(s): 91eaaff

Update sciarg.py

Browse files
Files changed (1) hide show
  1. sciarg.py +6 -18
sciarg.py CHANGED
@@ -14,22 +14,10 @@ logger = logging.getLogger(__name__)
14
  class BratConfig(BuilderConfig):
15
  """BuilderConfig for BRAT."""
16
 
17
- url: str = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip" # type: ignore
18
- description: Optional[str] = '''This dataset is an extension of the Dr. Inventor corpus (Fisas et al., 2015, 2016) with an annotation layer containing
19
- fine-grained argumentative components and relations. It is the first argument-annotated corpus of scientific
20
- publications (in English), which allows for joint analyses of argumentation and other rhetorical dimensions of
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
- BUILDER_CONFIG_CLASS.file_name_blacklist = ["A28"]
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
+ ]