Stardrums commited on
Commit
74372b4
·
1 Parent(s): acd0763
Files changed (1) hide show
  1. pico-breast-cancer.py +3 -5
pico-breast-cancer.py CHANGED
@@ -112,10 +112,8 @@ class PicoBreastCancer(datasets.GeneratorBasedBuilder):
112
  ner_tags.append(splits[1].rstrip())
113
  # last example
114
  if tokens:
115
- yield guid, {
116
- "id": str(guid),
117
  "tokens": tokens,
118
- "pos_tags": pos_tags,
119
- "chunk_tags": chunk_tags,
120
- "ner_tags": ner_tags,
121
  }
 
112
  ner_tags.append(splits[1].rstrip())
113
  # last example
114
  if tokens:
115
+ yield idx, {
116
+ "id": str(idx),
117
  "tokens": tokens,
118
+ "ner_tags": ner_tags
 
 
119
  }