Refactor: improve mineru_parser get property logic (#11268)

### What problem does this PR solve?

improve mineru_parser get property logic

### Type of change

- [x] Refactoring
This commit is contained in:
Stephen Hu
2025-11-14 16:32:35 +08:00
committed by GitHub
parent b5f2cf16bc
commit 12db62b9c7

View File

@ -434,7 +434,7 @@ class MinerUParser(RAGFlowPdfParser):
if not section.strip():
section = "FAILED TO PARSE TABLE"
case MinerUContentType.IMAGE:
section = "".join(output["image_caption"]) + "\n" + "".join(output["image_footnote"])
section = "".join(output.get(["image_caption"],[])) + "\n" + "".join(output.get(["image_footnote"],[]))
case MinerUContentType.EQUATION:
section = output["text"]
case MinerUContentType.CODE: