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:
parent
b5f2cf16bc
commit
12db62b9c7
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