Update FCD_lmv2.py
Browse files- FCD_lmv2.py +1 -0
FCD_lmv2.py
CHANGED
|
@@ -127,5 +127,6 @@ class FCD(datasets.GeneratorBasedBuilder):
|
|
| 127 |
tokens.append(w["text"])
|
| 128 |
ner_tags.append("I-" + label.upper())
|
| 129 |
bboxes.append(normalize_bbox(w["box"], size))
|
|
|
|
| 130 |
|
| 131 |
yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags, "image": image}
|
|
|
|
| 127 |
tokens.append(w["text"])
|
| 128 |
ner_tags.append("I-" + label.upper())
|
| 129 |
bboxes.append(normalize_bbox(w["box"], size))
|
| 130 |
+
|
| 131 |
|
| 132 |
yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags, "image": image}
|