Fix: bbox not included in mineru output (#11365)

### What problem does this PR solve?

Fix: bbox not included in mineru output #11315

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Billy Bao
2025-11-19 13:59:32 +08:00
committed by GitHub
parent 2de42f00b8
commit 0884e9a4d9

View File

@ -318,7 +318,7 @@ class MinerUParser(RAGFlowPdfParser):
def _line_tag(self, bx): def _line_tag(self, bx):
pn = [bx["page_idx"] + 1] pn = [bx["page_idx"] + 1]
positions = bx["bbox"] positions = bx.get("bbox", (0, 0, 0, 0))
x0, top, x1, bott = positions x0, top, x1, bott = positions
if hasattr(self, "page_images") and self.page_images and len(self.page_images) > bx["page_idx"]: if hasattr(self, "page_images") and self.page_images and len(self.page_images) > bx["page_idx"]: