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

Double-spaced PDFs have trouble block-chunking #12

Open
goodmami opened this issue Apr 22, 2017 · 0 comments
Open

Double-spaced PDFs have trouble block-chunking #12

goodmami opened this issue Apr 22, 2017 · 0 comments

Comments

@goodmami
Copy link
Member

Currently lines are grouped into blocks if the distance between lines is less than some function of the average character height. This, in tests, works well in single-spaced documents. In double-spaced documents, each line gets its own block. There's an alternate method that does a histogram of the gap sizes and tries to find the ones that are significantly bigger than average, but this doesn't seem to work well for some single-spaced documents. Things could be improved here.

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