Repair Japanese dates in OCR text
jp_ocr_fix_datesRepair OCR-mangled Japanese dates by correcting look-alike characters and validating fixes against the calendar and era ranges. Returns repaired text and change details for scanned invoices and forms.
Instructions
Find Japanese dates in OCR output (e.g. '今和6年3月15曰', '2O24年l月5日') and repair OCR look-alike characters. A fix is applied only when the repaired date exists on the calendar and inside the era (令和/平成/昭和/大正/明治). Returns the repaired text, every change with its ISO date, and flags for spans that look like dates but cannot be confirmed. Use it before extracting dates from scanned Japanese invoices, forms or PDFs. OCRで崩れた和暦・日付を暦で確かめて直す。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | OCR text (Japanese) |