Label Template – YAML Configuration Guide
Label templates are used to extract values based on text labels (e.g. "Invoice No:", "Total:", "Date:").
OCR Reader searches for the label and extracts the value nearby.
labels:
- name: invoice_number
label: "Invoice No"
type: text
- name: total
label: "Total"
type: currency
template:
type: label
name: invoice_labels
source:
type: pdf
labels:
- name: invoice_number
label: "Invoice No"
type: text
- name: date
label: "Date"
type: date
- name: total
label: "Total"
type: currency