﻿# SROIE: inspect receipt text and target fields

Separate receipt text localisation, word recognition and structured field extraction, and inspect how the selected SROIE adapter changes the task.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/data-guide-sroie-receipt-field-normalization/
Language: en

## Use the final competition task definitions

SROIE is useful when an experiment must distinguish finding text, reading it and selecting receipt fields. The [competition report](https://arxiv.org/html/2103.10213v1) separates localisation, OCR and information extraction. Its OCR task expects words from the whole image, including repeated occurrences, rather than a transcription attached to every predicted rectangle. A system evaluated only on supplied text crops therefore answers a narrower question. State whether the detector, recogniser and field selector receive gold inputs or predictions.

## Preserve punctuation after the coordinates

The [organisers' proposal repository](https://github.com/SYZNKJ2019/SROIE2019) describes text locations with clockwise vertices and separate structured extraction annotations. A transcript can contain commas. Splitting a row and retaining only its last cell silently truncates addresses or other text. Treat the coordinate prefix and remaining transcription as different parts of the record. Keep the original string beside any cleaned string so a later comparison can explain changes to spacing, punctuation or case.

## Inspect what the adapter actually returns

The [docTR SROIE implementation](https://raw.githubusercontent.com/mindee/doctr/main/doctr/datasets/sroie.py) rejoins text after the first 8 CSV values. Its default returns page images with boxes and labels; detection mode omits transcriptions, while recognition mode produces crops and strings. Polygon handling is also optional: converting vertices to enclosing straight boxes changes the background seen by a recogniser. None of these modes supplies the receipt-level company, date, address and total extraction mapping. Selecting this loader alone does not construct that target task.

## Keep field selection separate from normalisation

A proposed diagnostic is to retain the source text, predicted field identity and normalised value separately. If a model chooses a subtotal as the total, a decimal-format cleanup cannot repair the selection error. Likewise, parsing a date into a standard form can hide a mistaken source string. Report literal extraction results before any additional application-specific transformation, and explain accepted equivalences. This is an editorial evaluation design, not a new SROIE benchmark score.

## Record the release and receipt boundary

The organiser repository is an early proposal whose combined OCR task numbering differs from the final report. The docTR adapter names versioned archives and hashes; those are more precise artifact identifiers than a dataset name alone. Check the chosen release's actual image and annotation inventory instead of assuming every repackaging matches the historical competition plan. Keep all crops from a receipt in its assigned partition. The [document split guide](/journal/document-level-data-split-leakage/) explains that boundary, while [document provenance](/journal/document-markdown-json-provenance/) helps preserve links between the scan, transcript and derived fields.
