nielsr HF staff commited on
Commit
0c96f19
1 Parent(s): 36010b7

Update funsd-layoutlmv3.py

Browse files
Files changed (1) hide show
  1. funsd-layoutlmv3.py +1 -2
funsd-layoutlmv3.py CHANGED
@@ -74,7 +74,6 @@ class Funsd(datasets.GeneratorBasedBuilder):
74
  )
75
  ),
76
  "image": datasets.features.Image(),
77
- "image_path": datasets.Value("string"),
78
  }
79
  ),
80
  supervised_keys=None,
@@ -141,4 +140,4 @@ class Funsd(datasets.GeneratorBasedBuilder):
141
  cur_line_bboxes = self.get_line_bbox(cur_line_bboxes)
142
  bboxes.extend(cur_line_bboxes)
143
  yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags,
144
- "image": image, "image_path": image_path}
 
74
  )
75
  ),
76
  "image": datasets.features.Image(),
 
77
  }
78
  ),
79
  supervised_keys=None,
 
140
  cur_line_bboxes = self.get_line_bbox(cur_line_bboxes)
141
  bboxes.extend(cur_line_bboxes)
142
  yield guid, {"id": str(guid), "tokens": tokens, "bboxes": bboxes, "ner_tags": ner_tags,
143
+ "image": image}