singh-aditya commited on
Commit
5326f98
1 Parent(s): c40a449

Rename MACCROBAT_biomedical_ner1.py to MACCROBAT_biomedical_ner.py

Browse files
MACCROBAT_biomedical_ner1.py → MACCROBAT_biomedical_ner.py RENAMED
@@ -2,9 +2,9 @@ import json
2
  import datasets
3
  from datasets import Sequence, ClassLabel, Value
4
 
5
- _TRAIN = "MACCROBAT2020-V2.json"
6
-
7
-
8
  class MACCROBAT_biomedical_ner(datasets.GeneratorBasedBuilder):
9
  def _info(self):
10
  return datasets.DatasetInfo(
@@ -121,7 +121,7 @@ class MACCROBAT_biomedical_ner(datasets.GeneratorBasedBuilder):
121
  """Returns SplitGenerators."""
122
 
123
  return [
124
- datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": _TRAIN}),
125
  ]
126
 
127
  def _generate_examples(self, filepath):
 
2
  import datasets
3
  from datasets import Sequence, ClassLabel, Value
4
 
5
+ _TRAIN_FILE = "MACCROBAT2020-V2.json"
6
+ _NAME = "MACCROBAT_biomedical_ner"
7
+ _TRAIN_URL = f"https://huggingface.co/datasets/singh-aditya/{_NAME}/raw/main/{_TRAIN_FILE}"
8
  class MACCROBAT_biomedical_ner(datasets.GeneratorBasedBuilder):
9
  def _info(self):
10
  return datasets.DatasetInfo(
 
121
  """Returns SplitGenerators."""
122
 
123
  return [
124
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": _TRAIN_URL}),
125
  ]
126
 
127
  def _generate_examples(self, filepath):