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

Add Inline Math Support #517

Open
wants to merge 26 commits into
base: dev
Choose a base branch
from
Open

Add Inline Math Support #517

wants to merge 26 commits into from

Conversation

tarun-menta
Copy link
Collaborator

Inline math is now detected from surya and spliced into the existing provider lines

Complete refactor of OCRBuilder and LayoutBuilder, OCR decisions are now made per-line, instead of for a full page.

Copy link
Owner

@VikParuchuri VikParuchuri left a comment

Choose a reason for hiding this comment

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

  • High level, I think an approach where we don't combine all the logic into the OCRBuilder is more maintainable (see comments)
  • Needs tests

marker/processors/equation.py Show resolved Hide resolved
marker/builders/ocr.py Show resolved Hide resolved
marker/util.py Outdated Show resolved Hide resolved
@tarun-menta
Copy link
Collaborator Author

Fails two tests - test_garbed_pdf.py and test_rotated_bboxes.py, but the markdown and HTML outputs are the same as before after a diff check with dev.

Line counts changed because of different behavior of new line det model
Picks up some lines within figures which weren't before, hence the
increased count. Outputs are still unchanged
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.

2 participants