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

Simplification of code and a bit faster #12

Merged
merged 3 commits into from Nov 6, 2021
Merged

Simplification of code and a bit faster #12

merged 3 commits into from Nov 6, 2021

Conversation

shabie
Copy link
Owner

@shabie shabie commented Nov 6, 2021

The bottleneck remains the tesseract but still I tried to make it faster. If you don't find any bugs, please merge.

Key changes:

  1. Use of lru_cache
  2. Use of word_ids for token-level bounding box duplication. This is a feature of BertTokenizerFast.

@shabie shabie requested a review from uakarsh November 6, 2021 02:37
@shabie
Copy link
Owner Author

shabie commented Nov 6, 2021

Sorry merging this myself since I wanna move forward with it.

@shabie shabie merged commit 6378b14 into master Nov 6, 2021
@shabie shabie deleted the optim-dataset branch November 6, 2021 22:28
@uakarsh
Copy link
Collaborator

uakarsh commented Nov 7, 2021

Not a problem, I think that it is fine

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