Read the pages back: text and pictures - #6
Merged
Merged
Conversation
Two verbs the tool was missing, on top of the extractor. text prints what a document says, with the lines put back together; -layout prints where every piece of it sits instead — a page, a place, a size, and what it says. A piece the document gave no way to read comes back marked rather than guessed at, and so does one drawn with no ink, which is how a scanner writes what it read underneath the picture it read it from. images writes out the pictures a page places, named by the page and the order they were placed in, with a line saying how large each is and where it landed. A JPEG comes out as a JPEG rather than re-encoded, which is what anyone taking pictures out of a document wants. Run over four hundred corpus files for the text and two hundred for the pictures: nothing failed, and 171 pictures came out of the two hundred.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two verbs the tool was missing, on top of
extractv0.1.0.textprints what a document says with the lines put back together;-layoutprints where every piece of it sits instead — a page, a place, a size, and what it says:A piece the document gave no way to read comes back marked rather than guessed at, and so does one drawn with no ink — how a scanner writes what it read underneath the picture it read it from:
imageswrites out the pictures a page places, named by page and order, with a line saying how large each is and where it landed. A JPEG comes out as a JPEG rather than re-encoded.Run over 400 corpus files for the text and 200 for the pictures: nothing failed. 100% statement coverage.