Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocParser没有返回表格数据 #459

Open
m220745 opened this issue Aug 9, 2024 · 2 comments
Open

DocParser没有返回表格数据 #459

m220745 opened this issue Aug 9, 2024 · 2 comments

Comments

@m220745
Copy link

m220745 commented Aug 9, 2024

如题:
使用示例中的pdf和代码,返回的结果中表格和标题数据都是空,请问这是Bug吗?还是sdk版本不对?
image
安装的sdk版本是:appbuilder-sdk==0.9.1
image

@m220745
Copy link
Author

m220745 commented Aug 12, 2024

经过debug发现是PageContent对象参数名不一致引起的,前面加上page_即可:
titles --> page_titles
tables --> page_tables
image

@m220745
Copy link
Author

m220745 commented Aug 12, 2024

另外发现tables处理成Markdown结构时,此处不应该set来去重,set 数据结构是无序的,set集合会自动去除重复元素,但不保留原始列表的顺序,可能会导致转换后的表格元素错位。

image

源文档:
image

转成Markdown后:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant