singh-aditya commited on
Commit
5dbdd64
1 Parent(s): aaeeb0f

Update MACCROBAT_biomedical_ner.py

Browse files
Files changed (1) hide show
  1. MACCROBAT_biomedical_ner.py +9 -0
MACCROBAT_biomedical_ner.py CHANGED
@@ -1,6 +1,8 @@
1
  import datasets
2
  from datasets import Sequence, ClassLabel, Value
3
 
 
 
4
 
5
  class MACCROBAT_biomedical_ner(datasets.GeneratorBasedBuilder):
6
  def _info(self):
@@ -113,3 +115,10 @@ class MACCROBAT_biomedical_ner(datasets.GeneratorBasedBuilder):
113
  homepage="",
114
  citation="",
115
  )
 
 
 
 
 
 
 
 
1
  import datasets
2
  from datasets import Sequence, ClassLabel, Value
3
 
4
+ _TRAIN = "MACCROBAT2020-V2.json"
5
+
6
 
7
  class MACCROBAT_biomedical_ner(datasets.GeneratorBasedBuilder):
8
  def _info(self):
 
115
  homepage="",
116
  citation="",
117
  )
118
+
119
+ def _split_generators(self):
120
+ """Returns SplitGenerators."""
121
+
122
+ return [
123
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": _TRAIN}),
124
+ ]