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

Merged
merged 53 commits into from
Feb 13, 2025
Merged

Add Inline Math Support #517

merged 53 commits into from
Feb 13, 2025

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 Outdated 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
Enables skipping of texify predictions if required
Skip on a few conditions, retain original text
@VikParuchuri VikParuchuri merged commit 4a385c2 into dev Feb 13, 2025
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants