Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
Python & Django

Turning Files Into Structured Data

Last updated:

Know what you are dealing with

SourceDifficulty
PDF with real textStraightforward
Well-structured spreadsheetStraightforward
PDF with tablesModerate — layout matters
Scanned documentNeeds OCR, quality varies
Photograph of a documentHardest — lighting and angle

The first question in any document project is what proportion of the input falls into each category. That determines the achievable accuracy more than anything else.

Validation matters more than extraction

Extraction alone might reach ninety per cent on mixed documents. Extraction with validation reaches the same accuracy and knows which ten per cent it got wrong, which is what makes it usable.
  • Do the line items sum to the stated total?
  • Does the supplier exist in your records?
  • Is the date plausible?
  • Is this document a duplicate?
  • Are required fields present?

Route the uncertain to a person

Anything that fails validation, or where extraction confidence is low, should reach a review queue rather than being written as though it were certain.

That review interface determines whether the system saves time. If checking takes longer than keying, people stop using it.

Spreadsheets are messier than they look

  1. Merged cells that break row alignment
  2. Several tables on one sheet
  3. Headers that repeat partway down
  4. Numbers stored as text
  5. Formulas whose values matter, not the formulas

Each is common and each needs handling explicitly rather than assuming a clean rectangular table.

Preserve the source

Always keep the original document alongside the extracted data, linked. When a value is questioned six months later, the answer is in the source.

It is also what makes the audit conversation short, and it costs almost nothing in storage.

Frequently asked questions

How accurate is document extraction?

Eighty-five to ninety-five per cent per field on text-based documents with good validation. Considerably lower on poor scans.

Does AI improve this?

Substantially for varied layouts, where rules-based extraction struggles. Validation is still what makes it reliable.

How many samples do you need?

A hundred representative documents including the awkward ones. Clean samples from one supplier tell you very little.

What about handwriting?

Poor results in general. Route handwritten documents to a person by default rather than attempting extraction.

Keep reading

Someone keying documents all day?

Send us thirty representative examples and we will tell you honestly what share could be automated.

Book a free 30-minute call Get a project estimate WhatsApp us

Related services

What we build for problems like this one

Custom Software DevelopmentWeb DevelopmentMachine Learning