typo
Browse files- 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
|
116 |
-
"id": str(
|
117 |
"tokens": tokens,
|
118 |
-
"
|
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 |
}
|