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

修复pdf转markdown可能失败 #578

Open
wants to merge 1 commit into
base: qanything-v2
Choose a base branch
from

Conversation

zifengdexiatian
Copy link

OCR完成后将json转为markdown的过程中,如果text为空字符串,json2markdown函数则会出现超出索引报错(在英文文献的转换中经常性出现)
image
修复方法:
增加len(para_before) > 1 的判断

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

Successfully merging this pull request may close these issues.

1 participant