Update mineru_parser.py
This commit is contained in:
parent
6b52f7df5a
commit
c67d7dbab8
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue