Downloads · 30 days
0
HURIDOCS/pdf-reading-order
pdf-reading-order is a machine learning model from HURIDOCS. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as openrail.
<h3 align="center"PDF Reading Order</h3 <p align="center"A model for determining the correct reading order of the PDF files.</p
Downloads · 30 days
0
Access
Public
Updated Dec 4, 2023
Repo size
96.4 MB
Likes
10
Public
Click a slice to open those files.
.model96.4 MB · 100%
From the Hugging Face model README
This model uses features from a given PDF to determine it's correct reading order.
This model originally working on our two other models, which are pdf-token-type and pdf-paragraphs-extraction.
The reason for using paragraph extraction model here is to find & extract "figure" and "table" tokens and reduce the complexity of a given PDF page - since figures and tables are including lots of tokens.
So, for our paragraph extraction model's details, you can refer to these links:
https://huggingface.co/HURIDOCS/pdf-segmentation
https://github.com/huridocs/pdf_paragraphs_extraction.git
You can clone the repo via this link:
https://github.com/huridocs/pdf-reading-order
You can reach all the data we use through this link:
https://github.com/huridocs/pdf-labeled-data
First, the candidate selector model selects the tokens that could be the next token.
Then, we are passing the best 18 tokens to the reading order model that candidate selector model selected.
Reading order model decides the final reading orders of the tokens.
Test Accuracy : 16 Mistakes/11438 Labels (99.86%)
Average Accuracy: 431 Mistakes/184995 Labels (99.77%)
Speed: ~0.65 seconds per page.