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

Reorder partitioner output and fix model loading inefficiency #277

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

bohou-aryn
Copy link
Collaborator

No description provided.

from sycamore.transforms import SycamorePDFPartitioner
# For now, we reorder elements based on page, left/right column, y axle position then finally x axle position
@staticmethod
def _elements_reorder(element1: Element, element2: Element) -> int:
Copy link
Contributor

Choose a reason for hiding this comment

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

tests?

@bohou-aryn bohou-aryn force-pushed the fixmodel branch 3 times, most recently from 0d7628d to b2eeb06 Compare March 19, 2024 23:22
@bohou-aryn bohou-aryn merged commit b04ee0f into main Mar 20, 2024
7 of 10 checks passed
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.

None yet

2 participants