Update mineru_parser.py

This commit is contained in:
Stephen Hu 2025-11-14 11:47:17 +08:00
parent 6b52f7df5a
commit c67d7dbab8

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: