Update layoutlmv3.py
Browse files- layoutlmv3.py +1 -1
layoutlmv3.py
CHANGED
|
@@ -143,4 +143,4 @@ class Funsd(datasets.GeneratorBasedBuilder):
|
|
| 143 |
#cur_line_bboxes = self.get_line_bbox(cur_line_bboxes)
|
| 144 |
#bboxes.extend(cur_line_bboxes)
|
| 145 |
yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags,
|
| 146 |
-
"image": image}
|
|
|
|
| 143 |
#cur_line_bboxes = self.get_line_bbox(cur_line_bboxes)
|
| 144 |
#bboxes.extend(cur_line_bboxes)
|
| 145 |
yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags,
|
| 146 |
+
"image": image, "image_path":image_path}
|