by pani5ue · 4y ago · 0 comments
Using Textract from Amazon to do the OCR. I dump the raw json in a SQLite database.
Information extraction is trickier. I extract useful things like lines and pages, locations of lines, set up various columns and now can search the SQLite db either with python code or SQL queries.
There's of course cost for running textract OCR on AWS. There are open source solutions like Tesseract
Lots of missing context from these sheets that has to be interpreted (ie, how do you taxonomize each field of information?). Then asking questions on top of these documents is a step on top: "is the allegation about sexual violence?", "What is the name and rank of the person being accused?", "Is anything anomalous in the review process?", "Has this person's rank changed in the past 5 years?" etc etc.
Now expand this problem to hundreds of thousands of different types of document.