Datasets:
EMBO
/

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
expert-generated
Annotations Creators:
expert-generated
Source Datasets:
original
ArXiv:
License:
Dr. Jorge Abreu Vicente commited on
Commit
1320a6a
1 Parent(s): 43ccb0d

BC5CDR-chem-IOB is working

Browse files
Files changed (1) hide show
  1. BLURB.py +2 -4
BLURB.py CHANGED
@@ -100,7 +100,7 @@ class Blurb(datasets.GeneratorBasedBuilder):
100
 
101
  BUILDER_CONFIGS = [
102
  BlurbConfig(name='BC5CDR-chem-IOB', task='ner', label_classes=['O', 'B-Chemical', 'I-Chemical'],
103
- data_url = "https://github.com/cambridgeltl/MTL-Bioinformatics-2016/tree/master/data/",
104
  description='BC5-CHEM',
105
  citation=CITATION_BC5_CHEM)
106
  ]
@@ -143,8 +143,7 @@ class Blurb(datasets.GeneratorBasedBuilder):
143
  logger.info("⏳ Generating examples from = %s", filepath)
144
 
145
  if self.config.task == 'ner':
146
- self._ner_example_generator(filepath)
147
-
148
 
149
  def _ner_split_generator(self, downloaded_files):
150
  return [
@@ -156,7 +155,6 @@ class Blurb(datasets.GeneratorBasedBuilder):
156
  gen_kwargs={"filepath": downloaded_files["test"]}),
157
  ]
158
 
159
-
160
  def _ner_example_generator(self, filepath):
161
  with open(filepath, encoding="utf-8") as f:
162
  guid = 0
 
100
 
101
  BUILDER_CONFIGS = [
102
  BlurbConfig(name='BC5CDR-chem-IOB', task='ner', label_classes=['O', 'B-Chemical', 'I-Chemical'],
103
+ data_url = "https://github.com/cambridgeltl/MTL-Bioinformatics-2016/raw/master/data/",
104
  description='BC5-CHEM',
105
  citation=CITATION_BC5_CHEM)
106
  ]
 
143
  logger.info("⏳ Generating examples from = %s", filepath)
144
 
145
  if self.config.task == 'ner':
146
+ return self._ner_example_generator(filepath)
 
147
 
148
  def _ner_split_generator(self, downloaded_files):
149
  return [
 
155
  gen_kwargs={"filepath": downloaded_files["test"]}),
156
  ]
157
 
 
158
  def _ner_example_generator(self, filepath):
159
  with open(filepath, encoding="utf-8") as f:
160
  guid = 0