Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Turning Unstructured Text Into Fields
Python & Django

Turning Unstructured Text Into Fields

Building an extraction service that turns documents and free text into structured fields, with validation, confidence routing and per-field accuracy.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Extraction plus validation plus confidence routing. Extraction alone is a demonstration; the other two are what make it usable in a business process.

Three components, not one

  1. Extraction — pulling fields from the document or text
  2. Validation — checking against master data and internal consistency
  3. Routing — confident items proceed, uncertain items reach a person
Extraction alone might reach ninety per cent. Extraction with validation reaches the same and knows which ten per cent it got wrong, which is what makes automation safe.

Validation is where accuracy comes from

  • Does the referenced entity exist in your records?
  • Do the components sum to the stated total?
  • Is the date within a plausible range?
  • Is this a duplicate of something already processed?
  • Are required fields present and in the expected format?

Report accuracy per field

A ninety-five per cent per-field rate across twelve fields means barely half of documents are perfect. Reporting a single accuracy figure without saying which is misleading.

MetricWhat it means
Per-field accuracyHow often each field is right
Per-document accuracyHow often every field is right
Straight-through rateHow often no human is needed
Correction rate by fieldWhere to improve

Straight-through rate is the one that determines how much work actually disappears, and it is the number to agree on before building.

Design the review interface carefully

The review screen determines whether the system saves time. Source document beside the output, cursor on the first uncertain field, keyboard-only completion, and corrections captured.

Ten seconds per review makes a twenty per cent review rate workable. Two minutes per review means people approve without looking, which is worse than no review.

Preserve the source

Always store the original document linked to the extracted data. When a value is questioned months later, the answer is in the source, and the audit conversation is short.

It is also what makes reprocessing possible when extraction improves.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

How many samples do you need?

A hundred representative documents including the awkward ones. Clean samples from one source tell you very little about the real accuracy.

What straight-through rate is realistic?

Seventy to eighty-five per cent on mixed sources with good validation. Higher for consistent formats, lower for scans.

Should it write directly to our system?

As drafts, through validation, never as posted transactions. That keeps the control environment intact.

What about documents it cannot handle?

Route them to a person immediately rather than producing a low-confidence guess. Some documents will never be economic to automate.

Keep reading

More on Python & Django

Python & Django

An API Other Systems Can Depend On

Designing a Python API service others can depend on: validation at the boundary, consistent errors and status codes, early versioning and documentation.

Python & Django

Moving and Transforming Data Reliably

Building data pipelines in Python that cope with malformed input: restartable stages, quarantining failures, reconciling counts and alerting on absence.

Start here

Fields keyed from documents every day?

Send us thirty representative examples and we will tell you honestly what share could go through automatically.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →