close
Skip to content

Fix incorrect doc example on PP-StructureV3#17956

Open
elfogre wants to merge 2 commits intoPaddlePaddle:mainfrom
elfogre:main
Open

Fix incorrect doc example on PP-StructureV3#17956
elfogre wants to merge 2 commits intoPaddlePaddle:mainfrom
elfogre:main

Conversation

@elfogre
Copy link
Copy Markdown

@elfogre elfogre commented Apr 22, 2026

markdown_texts is a MarkdownResult and can not be written to a file that way. Changing example code to use save_to_markdown function.

@paddle-bot
Copy link
Copy Markdown

paddle-bot Bot commented Apr 22, 2026

Thanks for your contribution!

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 22, 2026

CLA assistant check
All committers have signed the CLA.


with open(mkd_file_path, "w", encoding="utf-8") as f:
f.write(markdown_texts)
markdown_texts.save_to_markdown(save_path=mkd_file_path)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is recommended to rename markdown_texts to markdown_results to avoid potential confusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants