{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "72c4e610",
   "metadata": {},
   "source": [
    "# 07 · Adapt OCR\n",
    "\n",
    "Could the same invoice send a different payment amount after a scan? The synthetic invoice\n",
    "**SF-177277** prints **Balance payable 1,122.29**. The lab compares the clean line with a\n",
    "seeded degraded copy. A single wrong cents digit would still be a transcription error even\n",
    "if almost every other character matched.\n",
    "\n",
    "[Read the lesson](https://docs.recohut.com/courses/advanced-llm-fine-tuning/3-adapt-models/07-adapt-ocr)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9089e2a1",
   "metadata": {},
   "source": [
    "## Which software and hardware does this lab use?\n",
    "\n",
    "The same quantised base and processor serve every branch. Only language-backbone adapters train. The notebook stops early if CUDA is unavailable."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "2195d1fc",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:17:56.006750Z",
     "iopub.status.busy": "2026-11-27T09:17:56.006463Z",
     "iopub.status.idle": "2026-11-27T09:18:01.012257Z",
     "shell.execute_reply": "2026-11-27T09:18:01.010003Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "CompletedProcess(args=['/usr/bin/python3', '-m', 'pip', 'install', '-q', 'transformers==4.51.3', 'peft==0.15.2', 'accelerate==1.6.0', 'bitsandbytes==0.50.2', 'pillow==11.3.0', 'datasets==3.6.0', 'jiwer==4.0.0'], returncode=0)"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import subprocess, sys\n",
    "subprocess.run([sys.executable, \"-m\", \"pip\", \"install\", \"-q\",\n",
    "                \"transformers==4.51.3\", \"peft==0.15.2\", \"accelerate==1.6.0\",\n",
    "                \"bitsandbytes==0.50.2\", \"pillow==11.3.0\", \"datasets==3.6.0\",\n",
    "                \"jiwer==4.0.0\"], check=True)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "826d93c8",
   "metadata": {},
   "source": [
    "## How are invoice families held out?\n",
    "\n",
    "Original synthetic records are split by supplier-and-layout family before rendering. The same example retains its family identifier across image derivatives."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "2b3f11c7",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:01.026348Z",
     "iopub.status.busy": "2026-11-27T09:18:01.026020Z",
     "iopub.status.idle": "2026-11-27T09:18:01.187321Z",
     "shell.execute_reply": "2026-11-27T09:18:01.184776Z"
    }
   },
   "outputs": [],
   "source": [
    "\"\"\"Versioned synthetic invoices and independent record scoring for the course.\"\"\"\n",
    "\n",
    "from __future__ import annotations\n",
    "\n",
    "import json\n",
    "import random\n",
    "import re\n",
    "from collections import Counter\n",
    "from dataclasses import dataclass\n",
    "from datetime import date, timedelta\n",
    "from typing import Any\n",
    "\n",
    "CATALOG_VERSION = \"course-invoice-v1\"\n",
    "SPLIT_SIZES = {\"train\": 576, \"dev\": 72, \"familiar\": 96, \"novel\": 96, \"independent\": 48, \"release\": 120}\n",
    "VISIBLE_CONTRACT = (\n",
    "    \"Extract exactly one JSON object with invoice_id, issued_on (YYYY-MM-DD), supplier, \"\n",
    "    \"currency (ISO code), line_items (description, quantity, unit_minor), subtotal_minor, \"\n",
    "    \"tax_minor, and total_minor. Preserve line order and convert currency amounts to integer cents. \"\n",
    "    \"Use null only for a missing or ambiguous field. Do not rewrite printed amounts, invent fields, or add explanations.\"\n",
    ")\n",
    "\n",
    "@dataclass(frozen=True)\n",
    "class Line:\n",
    "    description: str\n",
    "    quantity: int\n",
    "    unit_minor: int\n",
    "\n",
    "\n",
    "@dataclass(frozen=True)\n",
    "class Invoice:\n",
    "    key: str\n",
    "    family: str\n",
    "    supplier: str\n",
    "    issued_on: str\n",
    "    currency: str\n",
    "    items: tuple[Line, ...]\n",
    "    tax_minor: int | None\n",
    "    locale: str\n",
    "    split: str\n",
    "    layout: str = \"register\"\n",
    "    printed_total_minor: int | None = None\n",
    "\n",
    "\n",
    "def invoice_record(invoice: Invoice) -> dict[str, Any]:\n",
    "    subtotal = sum(line.quantity * line.unit_minor for line in invoice.items)\n",
    "    total = subtotal + invoice.tax_minor if invoice.tax_minor is not None else None\n",
    "    if invoice.printed_total_minor is not None:\n",
    "        total = invoice.printed_total_minor\n",
    "    return {\n",
    "        \"invoice_id\": invoice.key,\n",
    "        \"issued_on\": invoice.issued_on,\n",
    "        \"supplier\": invoice.supplier,\n",
    "        \"currency\": invoice.currency,\n",
    "        \"line_items\": [\n",
    "            {\"description\": item.description, \"quantity\": item.quantity, \"unit_minor\": item.unit_minor}\n",
    "            for item in invoice.items\n",
    "        ],\n",
    "        \"subtotal_minor\": subtotal,\n",
    "        \"tax_minor\": invoice.tax_minor,\n",
    "        \"total_minor\": total,\n",
    "    }\n",
    "\n",
    "\n",
    "def make_catalog() -> list[Invoice]:\n",
    "    rng = random.Random(20261126)\n",
    "    sources = {\n",
    "        \"train\": (24, (\"register\", \"memo\", \"checkout\", \"ledger\")),\n",
    "        \"dev\": (6, (\"register\", \"memo\", \"checkout\", \"ledger\")),\n",
    "        \"familiar\": (8, (\"register\", \"memo\", \"checkout\", \"ledger\")),\n",
    "        \"novel\": (8, (\"packing\", \"remittance\", \"service\", \"notice\")),\n",
    "        \"independent\": (4, (\"separate\",)),\n",
    "        \"release\": (10, (\"packing\", \"remittance\", \"service\", \"notice\", \"separate\")),\n",
    "    }\n",
    "    locales = ((\"en-US\", \"USD\"), (\"en-GB\", \"GBP\"), (\"de-DE\", \"EUR\"), (\"fr-FR\", \"EUR\"), (\"en-US\", \"CAD\"))\n",
    "    services = (\"Cooling filter\", \"Cable sleeve\", \"Bench calibration\", \"Door seal\", \"Grounding clip\",\n",
    "                \"Rack inspection\", \"Meter label\", \"Packing insert\", \"Carrier adjustment\", \"Mounting plate\")\n",
    "    catalog = []\n",
    "    seen_keys = set()\n",
    "    supplier_codes = rng.sample(range(1000, 9999), sum(n for n, _ in sources.values()))\n",
    "    supplier_index = 0\n",
    "    for split, (family_count, layouts) in sources.items():\n",
    "        for family_number in range(family_count):\n",
    "            supplier_code = supplier_codes[supplier_index]\n",
    "            supplier_index += 1\n",
    "            layout = layouts[family_number % len(layouts)]\n",
    "            family = f\"{split}-{family_number:02d}\"\n",
    "            locale, currency = locales[family_number % len(locales)]\n",
    "            for row in range(SPLIT_SIZES[split] // family_count):\n",
    "                code = f\"SF-{rng.randrange(100000, 1000000)}\"\n",
    "                while code in seen_keys:\n",
    "                    code = f\"SF-{rng.randrange(100000, 1000000)}\"\n",
    "                seen_keys.add(code)\n",
    "                items = tuple(\n",
    "                    Line(kind, rng.randint(1, 9), rng.randrange(200, 24800))\n",
    "                    for kind in rng.sample(services, rng.randrange(1, 4))\n",
    "                )\n",
    "                subtotal = sum(x.quantity * x.unit_minor for x in items)\n",
    "                tax = (subtotal * (7 if currency == \"USD\" else 13) + 50) // 100\n",
    "                if split in {\"novel\", \"independent\", \"release\"} and row % 12 == 4:\n",
    "                    tax = None\n",
    "                displayed = subtotal + tax + 101 if tax is not None and row % 12 == 7 else None\n",
    "                issued_on = (date(2025, 1, 1) + timedelta(days=rng.randint(0, 590))).isoformat()\n",
    "                catalog.append(Invoice(code, family, f\"Sample Supplier {supplier_code}\", issued_on,\n",
    "                                       currency, items, tax, locale, split, layout, displayed))\n",
    "    return catalog\n",
    "\n",
    "\n",
    "def formatted_money(minor: int | None, locale: str) -> str:\n",
    "    if minor is None:\n",
    "        return \"-\"\n",
    "    dollars, cents = divmod(minor, 100)\n",
    "    number = f\"{dollars:,}.{cents:02d}\"\n",
    "    if locale == \"de-DE\":\n",
    "        return number.replace(\",\", \"_\").replace(\".\", \",\").replace(\"_\", \".\")\n",
    "    if locale == \"fr-FR\":\n",
    "        return number.replace(\",\", \" \").replace(\".\", \",\")\n",
    "    return number\n",
    "\n",
    "\n",
    "def invoice_text(invoice: Invoice) -> str:\n",
    "    gold = invoice_record(invoice)\n",
    "    money = lambda value: formatted_money(value, invoice.locale)\n",
    "    identifier = f\"{invoice.key}\"\n",
    "    supplier = invoice.supplier\n",
    "    issued = invoice.issued_on\n",
    "    currency = invoice.currency\n",
    "    subtotal = money(gold[\"subtotal_minor\"])\n",
    "    tax = money(gold[\"tax_minor\"])\n",
    "    total = money(gold[\"total_minor\"])\n",
    "    register = [f\"{row.description} | {row.quantity} | {money(row.unit_minor)}\" for row in invoice.items]\n",
    "    inline = [f\"{row.quantity} x {row.description} @ {money(row.unit_minor)} per unit\" for row in invoice.items]\n",
    "    service = [f\"{row.description}: {money(row.unit_minor)} each for {row.quantity} units\" for row in invoice.items]\n",
    "    if invoice.layout == \"register\":\n",
    "        return \"\\n\".join([f\"Supplier: {supplier}\", f\"Invoice: {identifier}\", f\"Issued: {issued}\", f\"Currency: {currency}\",\n",
    "                          \"Description | Quantity | Unit price\", *register,\n",
    "                          f\"Subtotal: {subtotal}\", f\"Tax: {tax}\", f\"Amount due: {total}\"])\n",
    "    if invoice.layout == \"memo\":\n",
    "        return \"\\n\".join([f\"{supplier} billing memo / {issued}\", f\"Account invoice {identifier} [{currency}]\",\n",
    "                          *inline, f\"Total due {total} including tax {tax}; net amount {subtotal}.\"])\n",
    "    if invoice.layout == \"checkout\":\n",
    "        return \"\\n\".join([f\"{identifier} / supplier {supplier}\", f\"Date of issue {issued} / All amounts {currency}\",\n",
    "                          *service, f\"Net {subtotal}\", f\"Sales tax {tax}\", f\"Payable {total}\"])\n",
    "    if invoice.layout == \"ledger\":\n",
    "        return \"\\n\".join([f\"{supplier} | issued {issued} | invoice {identifier}\", f\"Ledger in {currency}\",\n",
    "                          \"Service | Count | Per unit\", *register, f\"Before tax {subtotal}\",\n",
    "                          f\"Tax charged {tax}\", f\"Balance {total}\"])\n",
    "    if invoice.layout == \"packing\":\n",
    "        return \"\\n\".join([f\"Billing details / {identifier}\", f\"Sold by {supplier}\", f\"Document date {issued}\",\n",
    "                          f\"Invoice currency {currency}\", f\"Balance payable {total}\", *service,\n",
    "                          f\"Merchandise {subtotal}\", f\"Tax {tax}\"])\n",
    "    if invoice.layout == \"remittance\":\n",
    "        return \"\\n\".join([f\"Remittance advice for {identifier} ({currency})\", f\"{supplier} / Document issued {issued}\",\n",
    "                          f\"Pay this amount {total}\", *inline, f\"Net charges {subtotal} / Tax {tax}\"])\n",
    "    if invoice.layout == \"service\":\n",
    "        return \"\\n\".join([f\"Ref {identifier} / {currency}\", f\"Service fee notice, {issued}\", supplier,\n",
    "                          *[f\"Unit {money(row.unit_minor)} / {row.quantity} times / {row.description}\" for row in invoice.items],\n",
    "                          f\"Fee subtotal {subtotal}\", f\"Plus tax {tax}\", f\"Amount requested {total}\"])\n",
    "    if invoice.layout == \"notice\":\n",
    "        return \"\\n\".join([f\"{supplier} / statement {identifier}\", f\"Issued on {issued}\",\n",
    "                          f\"Invoice denomination {currency}\", \"One-off charges\", *service,\n",
    "                          f\"Pre-tax {subtotal} / Tax assessment {tax} / Final bill {total}\"])\n",
    "    return \"\\n\".join([f\"Document {identifier}\", f\"Biller {supplier} / As of {issued} / {currency}\", *inline,\n",
    "                      f\"Gross {total}\", f\"Breakdown: net {subtotal} and taxes {tax}.\"])\n",
    "\n",
    "\n",
    "def _strict_dict(pairs: list[tuple[str, Any]]) -> dict[str, Any]:\n",
    "    result: dict[str, Any] = {}\n",
    "    for key, value in pairs:\n",
    "        if key in result:\n",
    "            raise ValueError(f\"Duplicate JSON key {key!r}\")\n",
    "        result[key] = value\n",
    "    return result\n",
    "\n",
    "\n",
    "def parse_record(completion: str | dict[str, Any]) -> dict[str, Any] | None:\n",
    "    if isinstance(completion, str):\n",
    "        try:\n",
    "            data = json.loads(completion, object_pairs_hook=_strict_dict)\n",
    "        except (ValueError, TypeError, RecursionError):\n",
    "            return None\n",
    "    else:\n",
    "        data = completion\n",
    "    keys = {\"invoice_id\", \"issued_on\", \"supplier\", \"currency\", \"line_items\", \"subtotal_minor\", \"tax_minor\", \"total_minor\"}\n",
    "    if not isinstance(data, dict) or set(data) != keys:\n",
    "        return None\n",
    "    for name in (\"invoice_id\", \"supplier\", \"issued_on\", \"currency\"):\n",
    "        value = data[name]\n",
    "        if value is not None and (not isinstance(value, str) or not value.strip()):\n",
    "            return None\n",
    "    try:\n",
    "        if data[\"issued_on\"] is not None and date.fromisoformat(data[\"issued_on\"]).isoformat() != data[\"issued_on\"]:\n",
    "            return None\n",
    "    except ValueError:\n",
    "        return None\n",
    "    if data[\"currency\"] is not None and re.fullmatch(\"[A-Z]{3}\", data[\"currency\"]) is None:\n",
    "        return None\n",
    "    for name in (\"subtotal_minor\", \"tax_minor\", \"total_minor\"):\n",
    "        if data[name] is not None and type(data[name]) is not int:\n",
    "            return None\n",
    "    if not isinstance(data[\"line_items\"], list):\n",
    "        return None\n",
    "    for row in data[\"line_items\"]:\n",
    "        if not isinstance(row, dict) or set(row) != {\"description\", \"quantity\", \"unit_minor\"}:\n",
    "            return None\n",
    "        if type(row[\"description\"]) is not str or type(row[\"quantity\"]) is not int or type(row[\"unit_minor\"]) is not int:\n",
    "            return None\n",
    "        if not row[\"description\"].strip() or row[\"quantity\"] <= 0:\n",
    "            return None\n",
    "    return data\n",
    "\n",
    "\n",
    "def score_record(completion: str | dict[str, Any], invoice: Invoice) -> dict[str, Any]:\n",
    "    truth = invoice_record(invoice)\n",
    "    observed = parse_record(completion)\n",
    "    field_correct = {key: observed is not None and observed.get(key) == value\n",
    "                     for key, value in truth.items() if key != \"line_items\"}\n",
    "    keys = (\"description\", \"quantity\", \"unit_minor\")\n",
    "    expected = Counter(tuple(r[k] for k in keys) for r in truth[\"line_items\"])\n",
    "    predicted = Counter(tuple(r[k] for k in keys) for r in observed[\"line_items\"]) if observed is not None else Counter()\n",
    "    matches = (expected & predicted).total()\n",
    "    row_count = expected.total() + predicted.total()\n",
    "    return {\"valid\": observed is not None, \"exact\": observed == truth,\n",
    "            \"fields\": sum(field_correct.values()) / len(field_correct), \"field_correct\": field_correct,\n",
    "            \"row_f1\": 2 * matches / row_count if row_count else 1.0}\n",
    "\n",
    "\n",
    "def rules_extract(text: str) -> dict[str, Any] | None:\n",
    "    lines = text.splitlines()\n",
    "    if len(lines) < 9 or lines[4] != \"Description | Quantity | Unit price\":\n",
    "        return None\n",
    "    property_names = (\"supplier\", \"invoice_id\", \"issued_on\", \"currency\")\n",
    "    headers = (\"Supplier: \", \"Invoice: \", \"Issued: \", \"Currency: \")\n",
    "    if any(not line.startswith(header) for line, header in zip(lines, headers)):\n",
    "        return None\n",
    "    data = {name: line.removeprefix(header) for name, line, header in zip(property_names, lines, headers)}\n",
    "\n",
    "    def minor(text_amount: str) -> int | None:\n",
    "        if text_amount == \"-\":\n",
    "            return None\n",
    "        if re.fullmatch(r\"(?:\\d+|\\d{1,3}(?:[., ]\\d{3})+)[.,]\\d{2}\", text_amount) is None:\n",
    "            raise ValueError(\"Unsupported amount format\")\n",
    "        units, frac = text_amount[:-3], text_amount[-2:]\n",
    "        return int(re.sub(r\"\\D\", \"\", units)) * 100 + int(frac)\n",
    "\n",
    "    try:\n",
    "        rows = [line.split(\" | \") for line in lines[5:-3]]\n",
    "        data[\"line_items\"] = [{\"description\": desc, \"quantity\": int(qty), \"unit_minor\": minor(unit)}\n",
    "                              for desc, qty, unit in rows]\n",
    "        data[\"subtotal_minor\"] = minor(lines[-3].removeprefix(\"Subtotal: \"))\n",
    "        data[\"tax_minor\"] = minor(lines[-2].removeprefix(\"Tax: \"))\n",
    "        data[\"total_minor\"] = minor(lines[-1].removeprefix(\"Amount due: \"))\n",
    "    except ValueError:\n",
    "        return None\n",
    "    return parse_record(data)\n",
    "\n",
    "\n",
    "def examples_for(split: str, limit: int | None = None) -> list[Invoice]:\n",
    "    found = [invoice for invoice in make_catalog() if invoice.split == split]\n",
    "    if not found:\n",
    "        raise ValueError(f\"Unknown invoice split {split!r}\")\n",
    "    if limit is None or limit >= len(found):\n",
    "        return found\n",
    "    if limit <= 0:\n",
    "        raise ValueError(\"Limit must be positive\")\n",
    "    groups: dict[str, list[Invoice]] = {}\n",
    "    for invoice in found:\n",
    "        groups.setdefault(invoice.family, []).append(invoice)\n",
    "    balanced = [invoice for group_rows in zip(*groups.values(), strict=True) for invoice in group_rows]\n",
    "    return balanced[:limit]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "9bc70a10",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:01.194054Z",
     "iopub.status.busy": "2026-11-27T09:18:01.193769Z",
     "iopub.status.idle": "2026-11-27T09:18:01.311740Z",
     "shell.execute_reply": "2026-11-27T09:18:01.310949Z"
    }
   },
   "outputs": [],
   "source": [
    "\"\"\"Original invoice page and chart rendering for the document notebooks.\"\"\"\n",
    "\n",
    "from PIL import Image, ImageDraw, ImageFont\n",
    "\n",
    "# The notebooks inline this file after the fixture contract. The fallback import\n",
    "# keeps the same functions usable in ordinary Python.\n",
    "if \"invoice_text\" not in globals():\n",
    "    from invoice_fixtures import Invoice, invoice_record, invoice_text\n",
    "\n",
    "\n",
    "def _font(size: int, bold: bool = False):\n",
    "    name = \"DejaVuSans-Bold.ttf\" if bold else \"DejaVuSans.ttf\"\n",
    "    try:\n",
    "        return ImageFont.truetype(name, size)\n",
    "    except OSError:\n",
    "        return ImageFont.load_default(size=size)\n",
    "\n",
    "\n",
    "def invoice_image(invoice: Invoice) -> Image.Image:\n",
    "    image = Image.new(\"RGB\", (896, 624), \"#faf9f5\")\n",
    "    draw = ImageDraw.Draw(image)\n",
    "    fields = invoice_text(invoice).splitlines()\n",
    "    accents = {\n",
    "        \"register\": \"#245067\", \"memo\": \"#732f41\", \"checkout\": \"#30614e\", \"ledger\": \"#2a3e72\",\n",
    "        \"packing\": \"#31535c\", \"remittance\": \"#694323\", \"service\": \"#4b3f65\", \"notice\": \"#73422d\",\n",
    "    }\n",
    "    accent = accents.get(invoice.layout, \"#4a5744\")\n",
    "    draw.rounded_rectangle((32, 29, 864, 595), 11, fill=\"white\", outline=\"#d9dad8\", width=2)\n",
    "    draw.rectangle((33, 34, 863, 42), fill=accent)\n",
    "    draw.text((64, 63), \"Supplier billing\", font=_font(28, bold=True), fill=accent)\n",
    "    draw.text((64, 102), \"Original synthetic course fixture\", font=_font(15), fill=\"#5b6462\")\n",
    "    draw.line((61, 134, 835, 134), fill=\"#d5dad8\", width=2)\n",
    "    for i, line in enumerate(fields):\n",
    "        y = 153 + 35 * i\n",
    "        if i % 2:\n",
    "            draw.rectangle((58, y - 3, 837, y + 28), fill=\"#f5f7f6\")\n",
    "        is_heading = line.startswith((\"Description |\", \"Service |\", \"One-off charges\"))\n",
    "        draw.text((65, y), line, fill=\"#233034\", font=_font(20, bold=is_heading))\n",
    "        if draw.textbbox((65, y), line, font=_font(20, bold=is_heading))[2] >= 837:\n",
    "            raise ValueError(f\"Invoice field did not fit the page: {line!r}\")\n",
    "    return image\n",
    "\n",
    "\n",
    "def spend_chart(invoice: Invoice, *, varied: bool = False):\n",
    "    \"\"\"Render line-item spending as labelled bars with separately known cents.\"\"\"\n",
    "    gold = invoice_record(invoice)\n",
    "    values = [row[\"quantity\"] * row[\"unit_minor\"] for row in gold[\"line_items\"]]\n",
    "    image = Image.new(\"RGB\", (896, 512), \"#ffffff\")\n",
    "    draw = ImageDraw.Draw(image)\n",
    "    accent = \"#266978\" if varied else \"#27598b\"\n",
    "    order = list(reversed(range(len(values)))) if varied else list(range(len(values)))\n",
    "    draw.text((48, 39), f\"Line item spending · {invoice.currency}\", fill=accent, font=_font(28, bold=True))\n",
    "    draw.text((48, 80), \"Total before tax per line item\", fill=\"#53575b\", font=_font(17))\n",
    "    largest = max(values)\n",
    "    rows = []\n",
    "    for position, index in enumerate(order):\n",
    "        row = gold[\"line_items\"][index]\n",
    "        value = values[index]\n",
    "        y = 141 + 86 * position\n",
    "        draw.text((51, y), row[\"description\"], font=_font(19), fill=\"#222222\")\n",
    "        money = f\"{value / 100:,.2f}\"\n",
    "        draw.text((734, y), money, font=_font(19, bold=True), fill=\"#222222\")\n",
    "        draw.rounded_rectangle((51, y + 34, 51 + int(value / largest * 650), y + 55), 4, fill=accent)\n",
    "        rows.append({\"description\": row[\"description\"], \"line_total_minor\": value})\n",
    "    return image, {\"currency\": invoice.currency, \"rows\": rows}"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c65b8818",
   "metadata": {},
   "source": [
    "## Which tokens receive a loss?\n",
    "\n",
    "Both renders use the same image tokens. The prompt prefix must match the full rendered sequence exactly before the mask removes it."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "5c499362",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:01.324049Z",
     "iopub.status.busy": "2026-11-27T09:18:01.323735Z",
     "iopub.status.idle": "2026-11-27T09:18:21.754707Z",
     "shell.execute_reply": "2026-11-27T09:18:21.753834Z"
    }
   },
   "outputs": [],
   "source": [
    "\"\"\"Bounded Qwen2-VL training and evaluation shared by the document notebooks.\"\"\"\n",
    "\n",
    "from dataclasses import dataclass\n",
    "from pathlib import Path\n",
    "import random\n",
    "from time import perf_counter\n",
    "\n",
    "import torch\n",
    "from peft import LoraConfig, PeftModel, get_peft_model, prepare_model_for_kbit_training\n",
    "from transformers import AutoProcessor, BitsAndBytesConfig, Qwen2VLForConditionalGeneration\n",
    "\n",
    "VISION_MODEL = \"Qwen/Qwen2-VL-2B-Instruct\"\n",
    "VISION_REV = \"1860c46f12b7449d0f5b426a7474ab715342bc65\"\n",
    "VISION_SEED = 42\n",
    "VISION_MAX_PIXELS = 576 * 28 * 28\n",
    "VISION_MAX_OUTPUT = 220\n",
    "\n",
    "\n",
    "@dataclass\n",
    "class DocumentExample:\n",
    "    key: str\n",
    "    image: object\n",
    "    instruction: str\n",
    "    answer: str\n",
    "    group: str\n",
    "\n",
    "\n",
    "def processor_for_vision():\n",
    "    return AutoProcessor.from_pretrained(\n",
    "        VISION_MODEL, revision=VISION_REV, trust_remote_code=False,\n",
    "        min_pixels=4 * 28 * 28, max_pixels=VISION_MAX_PIXELS,\n",
    "    )\n",
    "\n",
    "\n",
    "def load_vision_base(trainable: bool = False):\n",
    "    if not torch.cuda.is_available():\n",
    "        raise RuntimeError(\"Select a GPU runtime. This vision lab uses CUDA.\")\n",
    "    quantisation = BitsAndBytesConfig(\n",
    "        load_in_4bit=True, bnb_4bit_quant_type=\"nf4\",\n",
    "        bnb_4bit_compute_dtype=torch.float16, bnb_4bit_use_double_quant=True,\n",
    "    )\n",
    "    base = Qwen2VLForConditionalGeneration.from_pretrained(\n",
    "        VISION_MODEL, revision=VISION_REV, trust_remote_code=False, use_safetensors=True,\n",
    "        torch_dtype=torch.float16, device_map={\"\": 0}, quantization_config=quantisation,\n",
    "        attn_implementation=\"sdpa\",\n",
    "    )\n",
    "    if trainable:\n",
    "        return prepare_model_for_kbit_training(base, gradient_checkpointing_kwargs={\"use_reentrant\": False})\n",
    "    return base.eval()\n",
    "\n",
    "\n",
    "def adapter_for_vision(base):\n",
    "    adapter = get_peft_model(\n",
    "        base, LoraConfig(r=8, lora_alpha=16, target_modules=[\"q_proj\", \"v_proj\"],\n",
    "                         lora_dropout=0.0, task_type=\"CAUSAL_LM\"),\n",
    "    )\n",
    "    trainable = [name for name, value in adapter.named_parameters() if value.requires_grad]\n",
    "    if not trainable or any(\".visual.\" in name or \"lora\" not in name for name in trainable):\n",
    "        raise RuntimeError(\"Expected language-backbone LoRA parameters only.\")\n",
    "    return adapter\n",
    "\n",
    "\n",
    "def encode_image(processor, item: DocumentExample, assistant: str | None = None):\n",
    "    chat = [{\"role\": \"user\", \"content\": [{\"type\": \"image\"}, {\"type\": \"text\", \"text\": item.instruction}]}]\n",
    "    if assistant is not None:\n",
    "        chat.append({\"role\": \"assistant\", \"content\": [{\"type\": \"text\", \"text\": assistant}]})\n",
    "    template = processor.apply_chat_template(chat, tokenize=False, add_generation_prompt=assistant is None)\n",
    "    # Use the exact same pixels and processor settings in the prompt and full sequence.\n",
    "    inputs = processor(text=[template], images=[item.image], padding=False, return_tensors=\"pt\")\n",
    "    return inputs.to(\"cuda\")\n",
    "\n",
    "\n",
    "def sft_feature(processor, item: DocumentExample):\n",
    "    prompt = encode_image(processor, item)\n",
    "    full = encode_image(processor, item, item.answer)\n",
    "    labels = full[\"input_ids\"].clone()\n",
    "    prefix = prompt[\"input_ids\"]\n",
    "    width = prefix.shape[1]\n",
    "    if width >= labels.shape[1] or not torch.equal(labels[:, :width], prefix):\n",
    "        raise ValueError(f\"Chat template changed its expanded image prefix for {item.key}.\")\n",
    "    labels[:, :width] = -100\n",
    "    if not torch.any(labels[:, width:] != -100):\n",
    "        raise ValueError(\"The prompt mask removed the entire target.\")\n",
    "    return full, labels\n",
    "\n",
    "\n",
    "def fit_vision(adapter, processor, items, *, updates: int, accumulation: int = 2):\n",
    "    random.seed(VISION_SEED)\n",
    "    order = list(items)\n",
    "    random.shuffle(order)\n",
    "    if updates <= 0 or not order:\n",
    "        raise ValueError(\"Vision training needs a positive update budget and at least one example.\")\n",
    "    adapter.train()\n",
    "    optimiser = torch.optim.AdamW((p for p in adapter.parameters() if p.requires_grad), lr=1e-4)\n",
    "    torch.cuda.reset_peak_memory_stats()\n",
    "    torch.cuda.synchronize()\n",
    "    started = perf_counter()\n",
    "    history = []\n",
    "    for update in range(updates):\n",
    "        optimiser.zero_grad(set_to_none=True)\n",
    "        step_loss = 0.0\n",
    "        for j in range(accumulation):\n",
    "            features, labels = sft_feature(processor, order[(update * accumulation + j) % len(order)])\n",
    "            scalar = adapter(**features, labels=labels, use_cache=False).loss\n",
    "            if not torch.isfinite(scalar):\n",
    "                raise RuntimeError(f\"Non-finite vision SFT loss at step {update}.\")\n",
    "            (scalar / accumulation).backward()\n",
    "            step_loss += scalar.detach().item() / accumulation\n",
    "        norm = torch.nn.utils.clip_grad_norm_(adapter.parameters(), 1.0)\n",
    "        if not torch.isfinite(norm):\n",
    "            raise RuntimeError(\"Non-finite adapter gradient.\")\n",
    "        optimiser.step()\n",
    "        history.append(step_loss)\n",
    "    torch.cuda.synchronize()\n",
    "    adapter.eval()\n",
    "    return {\"updates\": updates, \"examples_seen\": updates * accumulation, \"seconds\": perf_counter() - started,\n",
    "            \"peak_gib\": torch.cuda.max_memory_allocated() / 2**30, \"loss\": history}\n",
    "\n",
    "\n",
    "@torch.inference_mode()\n",
    "def generate_vision(model, processor, example, *, max_new_tokens=VISION_MAX_OUTPUT, **options):\n",
    "    inputs = encode_image(processor, example)\n",
    "    output = model.generate(**inputs, max_new_tokens=max_new_tokens, do_sample=False, **options)\n",
    "    ids = output[0, inputs[\"input_ids\"].shape[1]:]\n",
    "    value = processor.tokenizer.decode(ids, skip_special_tokens=True).strip()\n",
    "    stops = model.generation_config.eos_token_id\n",
    "    eos = stops if isinstance(stops, (list, tuple)) else [stops]\n",
    "    return {\"text\": value, \"tokens\": ids.cpu().tolist(), \"complete\": bool(len(ids) and ids[-1].item() in eos)}\n",
    "\n",
    "\n",
    "def save_vision_adapter(model, path: str) -> Path:\n",
    "    target = Path(path)\n",
    "    model.save_pretrained(target, safe_serialization=True)\n",
    "    if not (target / \"adapter_model.safetensors\").is_file():\n",
    "        raise RuntimeError(f\"Missing adapter weights at {target}\")\n",
    "    return target"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "d66b5ca9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:21.758319Z",
     "iopub.status.busy": "2026-11-27T09:18:21.757799Z",
     "iopub.status.idle": "2026-11-27T09:18:21.793606Z",
     "shell.execute_reply": "2026-11-27T09:18:21.792563Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "GPU Tesla T4\n",
      "torch 2.14.1+cu130\n",
      "transformers 4.51.3\n",
      "peft 0.15.2\n",
      "bitsandbytes 0.50.2\n",
      "Pillow 11.3.0\n"
     ]
    }
   ],
   "source": [
    "import json\n",
    "from dataclasses import asdict\n",
    "from importlib.metadata import version\n",
    "from pathlib import Path\n",
    "from time import perf_counter\n",
    "import hashlib\n",
    "import random\n",
    "import shutil\n",
    "\n",
    "if not torch.cuda.is_available() or \"T4\" not in torch.cuda.get_device_name(0):\n",
    "    raise RuntimeError(\"This notebook needs a Colab T4 runtime.\")\n",
    "torch.manual_seed(VISION_SEED)\n",
    "START = perf_counter()\n",
    "print(\"GPU\", torch.cuda.get_device_name(0))\n",
    "for package in (\"torch\", \"transformers\", \"peft\", \"bitsandbytes\", \"Pillow\"):\n",
    "    print(package, version(package))\n",
    "\n",
    "def paired_family_exact(before, after, get_exact, seed=42):\n",
    "    baseline = {row[\"key\"]: row for row in before}\n",
    "    assert len(baseline) == len(before) == len(after)\n",
    "    assert set(baseline) == {row[\"key\"] for row in after}\n",
    "    deltas = {}\n",
    "    for current in after:\n",
    "        previous = baseline[current[\"key\"]]\n",
    "        assert previous[\"family\"] == current[\"family\"]\n",
    "        deltas.setdefault(current[\"family\"], []).append(get_exact(current) - get_exact(previous))\n",
    "    families = sorted(deltas)\n",
    "    if len(families) < 2:\n",
    "        return {\"families\":len(families),\"interval_pp\":None}\n",
    "    rng = random.Random(seed)\n",
    "    draws = []\n",
    "    for _ in range(2000):\n",
    "        rows = [delta for family in rng.choices(families, k=len(families)) for delta in deltas[family]]\n",
    "        draws.append(100 * sum(rows) / len(rows))\n",
    "    draws.sort()\n",
    "    return {\"families\":len(families),\n",
    "            \"delta_pp\":100 * sum(sum(values) for values in deltas.values()) / len(after),\n",
    "            \"interval_pp\":[draws[49],draws[1949]]}\n",
    "\n",
    "def feature_manifest(items, updates, accumulation):\n",
    "    return {\n",
    "        \"model\":VISION_MODEL, \"revision\":VISION_REV, \"catalogue\":CATALOG_VERSION,\n",
    "        \"updates\":updates, \"accumulation\":accumulation, \"seed\":VISION_SEED,\n",
    "        \"features_sha256\":hashlib.sha256(json.dumps([\n",
    "            [item.key, item.group, item.instruction, item.answer,\n",
    "             hashlib.sha256(item.image.tobytes()).hexdigest()] for item in items\n",
    "        ],ensure_ascii=False).encode()).hexdigest(),\n",
    "    }\n",
    "\n",
    "def write_results(filename, payload):\n",
    "    model = {\"id\": VISION_MODEL, \"revision\": VISION_REV}\n",
    "    versions = {p: version(p) for p in (\"torch\",\"transformers\",\"peft\",\"bitsandbytes\",\"Pillow\",\"datasets\")}\n",
    "    experiment = {\"elapsed_seconds\": round(perf_counter()-START, 3),\n",
    "                  \"gpu\": torch.cuda.get_device_name(0), \"model\": model,\n",
    "                  \"packages\": versions, \"catalogue\": CATALOG_VERSION, \"seed\": VISION_SEED}\n",
    "    with open(filename, \"w\", encoding=\"utf-8\") as handle:\n",
    "        json.dump({**experiment, **payload}, handle, indent=2, ensure_ascii=False)\n",
    "    print(json.dumps({**experiment, **payload}, ensure_ascii=False))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2171a9af",
   "metadata": {},
   "source": [
    "## How do we vary the input?\n",
    "\n",
    "Keep the document and label fixed. The varied branch receives a small rotation, blur and\n",
    "contrast reduction. Compare pixels from the two exports for the opening invoice before\n",
    "inspecting predictions."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "b9503306",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:21.796893Z",
     "iopub.status.busy": "2026-11-27T09:18:21.796345Z",
     "iopub.status.idle": "2026-11-27T09:18:21.870014Z",
     "shell.execute_reply": "2026-11-27T09:18:21.869266Z"
    }
   },
   "outputs": [],
   "source": [
    "\"\"\"OCR fixtures, row-level error accounting and the bounded T4 profile.\"\"\"\n",
    "\n",
    "from collections import defaultdict\n",
    "from gc import collect\n",
    "from PIL import ImageEnhance, ImageFilter, ImageOps\n",
    "from jiwer import process_characters, process_words\n",
    "import subprocess\n",
    "import tempfile\n",
    "\n",
    "OCR_PROMPT = \"Transcribe the single line in this image exactly. Output the line only.\"\n",
    "CORD_REV = \"7f0115a4b758a71d6473b8d085751692da2fef98\"\n",
    "OPENING_KEY = \"SF-177277\"\n",
    "\n",
    "\n",
    "def degrade(image, key):\n",
    "    rng = random.Random(key)\n",
    "    return ImageEnhance.Contrast(\n",
    "        image.rotate(rng.choice((-1.5, -0.8, 0.8, 1.5)), fillcolor=\"white\")\n",
    "             .filter(ImageFilter.GaussianBlur(rng.uniform(0.5, 1.2)))\n",
    "    ).enhance(rng.uniform(0.58, 0.85))\n",
    "\n",
    "\n",
    "def matched_crops(split, limit):\n",
    "    clean, varied = [], []\n",
    "    for invoice in examples_for(split, limit):\n",
    "        lines = invoice_text(invoice).splitlines()\n",
    "        candidates = [i for i, line in enumerate(lines)\n",
    "                      if not line.startswith((\"Description |\", \"Service |\", \"One-off charges\"))]\n",
    "        index = next(i for i, line in enumerate(lines) if line.startswith(\"Balance payable\")) if invoice.key == OPENING_KEY else random.Random(invoice.key).choice(candidates)\n",
    "        image = invoice_image(invoice)\n",
    "        top = 150 + 35 * index\n",
    "        assert top + 34 <= image.height, f\"Crop is outside {invoice.key}\"\n",
    "        crop = image.crop((58, top, 838, top + 34))\n",
    "        varied_crop = degrade(crop, invoice.key)\n",
    "        clean.append(DocumentExample(invoice.key, crop, OCR_PROMPT, lines[index], invoice.family))\n",
    "        varied.append(DocumentExample(invoice.key, varied_crop, OCR_PROMPT, lines[index], invoice.family))\n",
    "    keys = lambda rows: [(item.key, item.group, item.answer) for item in rows]\n",
    "    assert keys(clean) == keys(varied) and len(set(keys(clean))) == limit\n",
    "    return clean, varied\n",
    "\n",
    "\n",
    "def cord_crop(raw, number):\n",
    "    ground = json.loads(raw[\"ground_truth\"])\n",
    "    image = raw[\"image\"].convert(\"RGB\")\n",
    "    for line in ground[\"valid_line\"]:\n",
    "        words = [w for w in line[\"words\"] if w.get(\"text\", \"\").strip() and w.get(\"quad\")]\n",
    "        if len(words) < 2:\n",
    "            continue\n",
    "        quads = [word[\"quad\"] for word in words]\n",
    "        left = max(0, int(min(q[f\"x{i}\"] for q in quads for i in range(1, 5))) - 4)\n",
    "        right = min(image.width, int(max(q[f\"x{i}\"] for q in quads for i in range(1, 5))) + 5)\n",
    "        top = max(0, int(min(q[f\"y{i}\"] for q in quads for i in range(1, 5))) - 3)\n",
    "        bottom = min(image.height, int(max(q[f\"y{i}\"] for q in quads for i in range(1, 5))) + 4)\n",
    "        if right - left > 10 and bottom - top > 5:\n",
    "            key = f\"cord-{number}\"\n",
    "            crop = image.crop((left, top, right, bottom))\n",
    "            # The pinned Qwen processor requires both dimensions to span one merged patch.\n",
    "            horizontal = max(0, 28 - crop.width)\n",
    "            vertical = max(0, 28 - crop.height)\n",
    "            crop = ImageOps.expand(crop, (horizontal // 2, vertical // 2, (horizontal + 1) // 2,\n",
    "                                         (vertical + 1) // 2), fill=\"white\")\n",
    "            return DocumentExample(key, crop, OCR_PROMPT,\n",
    "                                   \" \".join(w[\"text\"] for w in words), key)\n",
    "    return None\n",
    "\n",
    "\n",
    "def tesseract_text(item):\n",
    "    with tempfile.TemporaryDirectory() as location:\n",
    "        path = Path(location) / \"crop.png\"\n",
    "        item.image.save(path)\n",
    "        return {\"text\": subprocess.check_output(\n",
    "            [\"tesseract\", str(path), \"stdout\", \"--psm\", \"7\", \"-l\", \"ind+eng\"],\n",
    "            stderr=subprocess.DEVNULL, text=True,\n",
    "        ).strip(), \"complete\": None}\n",
    "\n",
    "\n",
    "def error_counts(process, truth, prediction):\n",
    "    counts = process(truth, prediction)\n",
    "    edits = counts.substitutions + counts.deletions + counts.insertions\n",
    "    reference_length = counts.hits + counts.substitutions + counts.deletions\n",
    "    return edits, reference_length\n",
    "\n",
    "\n",
    "def measure_ocr(test_sets, method):\n",
    "    answer = {}\n",
    "    for split, items in test_sets.items():\n",
    "        rows = []\n",
    "        for item in items:\n",
    "            raw = method(item)\n",
    "            truth = \" \".join(item.answer.split())\n",
    "            prediction = \" \".join(raw[\"text\"].split())\n",
    "            char_edits, chars = error_counts(process_characters, truth, prediction)\n",
    "            word_edits, words = error_counts(process_words, truth, prediction)\n",
    "            rows.append({\"key\": item.key, \"family\": item.group, \"truth\": truth, \"prediction\": prediction,\n",
    "                         \"raw_truth\": item.answer, \"raw_prediction\": raw[\"text\"], \"complete\": raw[\"complete\"],\n",
    "                         \"char_edits\": char_edits, \"chars\": chars, \"word_edits\": word_edits, \"words\": words,\n",
    "                         \"exact\": truth == prediction})\n",
    "        answer[split] = {\n",
    "            \"count\": len(rows), \"exact\": sum(row[\"exact\"] for row in rows) / len(rows),\n",
    "            \"cer\": sum(row[\"char_edits\"] for row in rows) / sum(row[\"chars\"] for row in rows),\n",
    "            \"wer\": sum(row[\"word_edits\"] for row in rows) / sum(row[\"words\"] for row in rows), \"rows\": rows,\n",
    "        }\n",
    "    return answer\n",
    "\n",
    "\n",
    "def paired_error_changes(before, after):\n",
    "    assert set(before) == set(after)\n",
    "    changes = {}\n",
    "    for split, baseline in before.items():\n",
    "        pairs = defaultdict(list)\n",
    "        for a, b in zip(baseline[\"rows\"], after[split][\"rows\"], strict=True):\n",
    "            assert (a[\"key\"], a[\"family\"], a[\"truth\"]) == (b[\"key\"], b[\"family\"], b[\"truth\"])\n",
    "            pairs[a[\"family\"]].append((a, b))\n",
    "        families = sorted(pairs)\n",
    "        results = {}\n",
    "        for metric, edits, count in ((\"cer\", \"char_edits\", \"chars\"), (\"wer\", \"word_edits\", \"words\")):\n",
    "            totals = [(sum(b[edits] - a[edits] for a, b in pairs[key]),\n",
    "                       sum(a[count] for a, _ in pairs[key])) for key in families]\n",
    "            rng = random.Random(42)\n",
    "            draws = []\n",
    "            for _ in range(2000):\n",
    "                sampled = rng.choices(totals, k=len(totals))\n",
    "                draws.append(100 * sum(delta for delta, _ in sampled) / sum(n for _, n in sampled))\n",
    "            draws.sort()\n",
    "            results[metric] = {\"delta_pp\": 100 * (after[split][metric] - baseline[metric]),\n",
    "                               \"interval_pp\": [draws[49], draws[1949]] if len(families) >= 2 else None}\n",
    "        changes[split] = {\"families\": len(families), \"results\": results}\n",
    "    return changes\n",
    "\n",
    "\n",
    "def profile_t4(processor, candidates):\n",
    "    free, _ = torch.cuda.mem_get_info()\n",
    "    baseline = torch.cuda.memory_allocated()\n",
    "    if free < 12 * 2**30:\n",
    "        raise RuntimeError(\"OCR profile requires at least 12 GiB free on T4.\")\n",
    "    torch.manual_seed(VISION_SEED)\n",
    "    adapter = adapter_for_vision(load_vision_base(trainable=True))\n",
    "    # Process on CPU to measure sequence lengths without growing CUDA memory.\n",
    "    def width(item):\n",
    "        chat = [{\"role\": \"user\", \"content\": [{\"type\": \"image\"}, {\"type\": \"text\", \"text\": item.instruction}]},\n",
    "                {\"role\": \"assistant\", \"content\": [{\"type\": \"text\", \"text\": item.answer}]}]\n",
    "        template = processor.apply_chat_template(chat, tokenize=False, add_generation_prompt=False)\n",
    "        return processor(text=[template], images=[item.image], return_tensors=\"pt\")[\"input_ids\"].shape[1]\n",
    "    largest = max(candidates, key=width)\n",
    "    profile = fit_vision(adapter, processor, [largest], updates=1, accumulation=2)\n",
    "    profile[\"peak_reserved_gib\"] = torch.cuda.max_memory_reserved() / 2**30\n",
    "    profile[\"longest_prompt_and_response_tokens\"] = width(largest)\n",
    "    profile[\"key\"] = largest.key\n",
    "    del adapter\n",
    "    collect()\n",
    "    torch.cuda.empty_cache()\n",
    "    torch.manual_seed(VISION_SEED)\n",
    "    if (profile[\"seconds\"] > 45 or profile[\"peak_gib\"] > 10\n",
    "        or profile[\"peak_reserved_gib\"] > min(12, free / 2**30 - 2)\n",
    "        or torch.cuda.memory_allocated() > baseline + 128 * 2**20):\n",
    "        raise RuntimeError(f\"OCR training profile exceeds the T4 budget: {profile}\")\n",
    "    return profile"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "9dfe070c",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:21.873349Z",
     "iopub.status.busy": "2026-11-27T09:18:21.872943Z",
     "iopub.status.idle": "2026-11-27T09:18:24.832527Z",
     "shell.execute_reply": "2026-11-27T09:18:24.831094Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Opening source line: Balance payable 1,122.29\n",
      "Matched training and novel counts: 72 32\n"
     ]
    }
   ],
   "source": [
    "RESULTS = Path(\"results\")\n",
    "RESULTS.mkdir(exist_ok=True)\n",
    "clean_train, varied_train = matched_crops(\"train\", 72)\n",
    "clean_test, varied_test = matched_crops(\"novel\", 32)\n",
    "assert {x.group for x in clean_train}.isdisjoint(x.group for x in clean_test)\n",
    "assert {x.key for x in clean_train}.isdisjoint(x.key for x in clean_test)\n",
    "opening = [next(x for x in items if x.key == OPENING_KEY) for items in (clean_test, varied_test)]\n",
    "assert opening[0].answer == \"Balance payable 1,122.29\"\n",
    "for name, item in zip((\"clean\", \"degraded\"), opening):\n",
    "    item.image.save(RESULTS / f\"07-opening-{name}.png\")\n",
    "print(\"Opening source line:\", opening[0].answer)\n",
    "print(\"Matched training and novel counts:\", len(clean_train), len(clean_test))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7ebd679a",
   "metadata": {},
   "source": [
    "## How is the receipt transfer slice built?\n",
    "\n",
    "Take one annotated text line from each selected receipt in the official CORD v2 test set.\n",
    "The crop covers the annotation's word coordinates, and the target follows the annotated line\n",
    "order. Pad crops below 28 pixels on either side with white so the pinned Qwen processor accepts\n",
    "them. Every method receives the same padded pixels. [CORD dataset and licence](https://huggingface.co/datasets/naver-clova-ix/cord-v2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "05a2c07c",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:24.836333Z",
     "iopub.status.busy": "2026-11-27T09:18:24.836024Z",
     "iopub.status.idle": "2026-11-27T09:18:43.008332Z",
     "shell.execute_reply": "2026-11-27T09:18:43.007087Z"
    }
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/usr/local/lib/python3.13/dist-packages/huggingface_hub/utils/_auth.py:104: UserWarning: \n",
      "Error while fetching `HF_TOKEN` secret value from your vault: 'Requesting secret HF_TOKEN timed out. Secrets can only be fetched when running from the Colab UI.'.\n",
      "You are not authenticated with the Hugging Face Hub in this notebook.\n",
      "If the error persists, please let us know by opening an issue on GitHub (https://github.com/huggingface/huggingface_hub/issues/new).\n",
      "  warnings.warn(\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Receipt transfer crops: 20\n"
     ]
    }
   ],
   "source": [
    "from datasets import load_dataset\n",
    "\n",
    "stream = load_dataset(\"naver-clova-ix/cord-v2\", revision=CORD_REV, split=\"test\", streaming=True)\n",
    "external = []\n",
    "for i, row in enumerate(stream.take(48)):\n",
    "    item = cord_crop(row, i)\n",
    "    if item is not None:\n",
    "        external.append(item)\n",
    "        if len(external) == 20:\n",
    "            break\n",
    "assert len(external) == 20, \"The pinned receipt selection changed.\"\n",
    "external[0].image.save(RESULTS / \"07-transfer-example.png\")\n",
    "test_sets = {\"clean_novel\": clean_test, \"degraded_novel\": varied_test, \"cord_lines\": external}\n",
    "print(\"Receipt transfer crops:\", len(external))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "45c1f87a",
   "metadata": {},
   "source": [
    "## Can a fixed OCR engine read these same lines?\n",
    "\n",
    "Tesseract uses page segmentation mode 7 for one line. Use the same Indonesian and English\n",
    "language configuration across all three slices. Whitespace normalisation is shared across\n",
    "all systems. Case, punctuation and cents remain in the scoring inputs."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "d3e4bbde",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:18:43.011950Z",
     "iopub.status.busy": "2026-11-27T09:18:43.011549Z",
     "iopub.status.idle": "2026-11-27T09:19:06.270944Z",
     "shell.execute_reply": "2026-11-27T09:19:06.270154Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "tesseract 5.3.4 languages: ind+eng; psm: 7\n"
     ]
    }
   ],
   "source": [
    "import subprocess\n",
    "\n",
    "def installed_languages():\n",
    "    if not shutil.which(\"tesseract\"):\n",
    "        return set()\n",
    "    return set(subprocess.check_output([\"tesseract\", \"--list-langs\"], text=True).splitlines()[1:])\n",
    "\n",
    "if not {\"eng\", \"ind\"} <= installed_languages():\n",
    "    subprocess.run([\"apt-get\", \"-qq\", \"update\"], check=True)\n",
    "    subprocess.run([\"apt-get\", \"-qq\", \"install\", \"-y\", \"tesseract-ocr\", \"tesseract-ocr-eng\", \"tesseract-ocr-ind\"], check=True)\n",
    "assert {\"eng\", \"ind\"} <= installed_languages()\n",
    "ocr_version = subprocess.check_output([\"tesseract\", \"--version\"], text=True).splitlines()[0]\n",
    "print(ocr_version, \"languages: ind+eng; psm: 7\")\n",
    "scores = {\"tesseract\": measure_ocr(test_sets, tesseract_text)}"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c7f1255b",
   "metadata": {},
   "source": [
    "## Can the T4 fit the largest prepared crop?\n",
    "\n",
    "Run one training example selected by the measured expanded input length across both\n",
    "training variants. Fail early on a memory or time budget breach. Both scored arms then\n",
    "reload the same pinned base with a fresh optimiser and seed."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "edcfae8d",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:19:06.275987Z",
     "iopub.status.busy": "2026-11-27T09:19:06.275082Z",
     "iopub.status.idle": "2026-11-27T09:19:24.346846Z",
     "shell.execute_reply": "2026-11-27T09:19:24.346125Z"
    }
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Using a slow image processor as `use_fast` is unset and a slow processor was saved with this model. `use_fast=True` will be the default behavior in v4.52, even if the model was saved with a slow processor. This will result in minor differences in outputs. You'll still be able to use a slow processor with `use_fast=False`.\n"
     ]
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "926e2b31efcf47709191676132c31604",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "T4 profile: {\"updates\": 1, \"examples_seen\": 2, \"seconds\": 3.922286530999827, \"peak_gib\": 2.0678606033325195, \"loss\": [2.921293020248413], \"peak_reserved_gib\": 3.248046875, \"longest_prompt_and_response_tokens\": 99, \"key\": \"SF-540371\"}\n"
     ]
    }
   ],
   "source": [
    "from gc import collect\n",
    "\n",
    "processor = processor_for_vision()\n",
    "profile = profile_t4(processor, clean_train + varied_train)\n",
    "(RESULTS / \"07-t4-profile.json\").write_text(json.dumps(profile, indent=2) + \"\\n\")\n",
    "print(\"T4 profile:\", json.dumps(profile))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b636a4a7",
   "metadata": {},
   "source": [
    "## What does the frozen checkpoint read?\n",
    "\n",
    "Use the identical generation cap and greedy decoding for the frozen vision model and both\n",
    "adapters."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "9f0c0098",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:19:24.350520Z",
     "iopub.status.busy": "2026-11-27T09:19:24.349828Z",
     "iopub.status.idle": "2026-11-27T09:20:52.891970Z",
     "shell.execute_reply": "2026-11-27T09:20:52.891126Z"
    }
   },
   "outputs": [
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "32cb0fcc8af9405d90d7bfcc8e17c37d",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/usr/local/lib/python3.13/dist-packages/transformers/generation/configuration_utils.py:631: UserWarning: `do_sample` is set to `False`. However, `temperature` is set to `0.01` -- this flag is only used in sample-based generation modes. You should set `do_sample=True` or unset `temperature`.\n",
      "  warnings.warn(\n",
      "/usr/local/lib/python3.13/dist-packages/transformers/generation/configuration_utils.py:636: UserWarning: `do_sample` is set to `False`. However, `top_p` is set to `0.001` -- this flag is only used in sample-based generation modes. You should set `do_sample=True` or unset `top_p`.\n",
      "  warnings.warn(\n",
      "/usr/local/lib/python3.13/dist-packages/transformers/generation/configuration_utils.py:653: UserWarning: `do_sample` is set to `False`. However, `top_k` is set to `1` -- this flag is only used in sample-based generation modes. You should set `do_sample=True` or unset `top_k`.\n",
      "  warnings.warn(\n"
     ]
    }
   ],
   "source": [
    "def scored_transcript(model, item):\n",
    "    return generate_vision(model, processor, item, max_new_tokens=64)\n",
    "\n",
    "base = load_vision_base()\n",
    "scores[\"frozen\"] = measure_ocr(test_sets, lambda item: scored_transcript(base, item))\n",
    "del base\n",
    "collect()\n",
    "torch.cuda.empty_cache()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "31c0df08",
   "metadata": {},
   "source": [
    "## Does the same update budget help degraded crops?\n",
    "\n",
    "Both branches see the same invoice IDs and transcripts in the same order. The evaluated\n",
    "treatment is the training pixels. Keep the clean and degraded test scores separate."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "0feb9954",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:20:52.896066Z",
     "iopub.status.busy": "2026-11-27T09:20:52.895660Z",
     "iopub.status.idle": "2026-11-27T09:25:40.126181Z",
     "shell.execute_reply": "2026-11-27T09:25:40.125308Z"
    }
   },
   "outputs": [
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "74c97b1ebb954fce8043541c1e29e3ce",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/vnd.jupyter.widget-view+json": {
       "model_id": "e76a9d27bb46462ab64385bb5c5e73b0",
       "version_major": 2,
       "version_minor": 0
      },
      "text/plain": [
       "Loading checkpoint shards:   0%|          | 0/2 [00:00<?, ?it/s]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "runs = {}\n",
    "for label, items in ((\"clean_adapter\", clean_train), (\"varied_adapter\", varied_train)):\n",
    "    torch.manual_seed(VISION_SEED)\n",
    "    model = adapter_for_vision(load_vision_base(trainable=True))\n",
    "    runs[label] = fit_vision(model, processor, items, updates=24, accumulation=2)\n",
    "    scores[label] = measure_ocr(test_sets, lambda item: scored_transcript(model, item))\n",
    "    del model\n",
    "    collect()\n",
    "    torch.cuda.empty_cache()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6d168ee9",
   "metadata": {},
   "source": [
    "## Read the result\n",
    "\n",
    "Inspect the learner's opening crop, then compare paired changes with supplier families (or\n",
    "receipt IDs) as the resampling unit. Negative CER/WER changes mean fewer errors.\n",
    "[Read the lesson after measuring](https://docs.recohut.com/courses/advanced-llm-fine-tuning/3-adapt-models/07-adapt-ocr)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "82048a6e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-27T09:25:40.130216Z",
     "iopub.status.busy": "2026-11-27T09:25:40.129847Z",
     "iopub.status.idle": "2026-11-27T09:25:40.212408Z",
     "shell.execute_reply": "2026-11-27T09:25:40.210324Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{\n",
      "  \"tesseract\": {\n",
      "    \"clean_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"Balance payable 1,122.29\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"Balance payable 1,122.29\",\n",
      "      \"complete\": null,\n",
      "      \"char_edits\": 0,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 0,\n",
      "      \"words\": 3,\n",
      "      \"exact\": true\n",
      "    },\n",
      "    \"degraded_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"Balance payable 1,122.29\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"Balance payable 1,122.29\",\n",
      "      \"complete\": null,\n",
      "      \"char_edits\": 0,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 0,\n",
      "      \"words\": 3,\n",
      "      \"exact\": true\n",
      "    }\n",
      "  },\n",
      "  \"frozen\": {\n",
      "    \"clean_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"(13,13),(987,987)\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"(13,13),(987,987)\",\n",
      "      \"complete\": true,\n",
      "      \"char_edits\": 23,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 3,\n",
      "      \"words\": 3,\n",
      "      \"exact\": false\n",
      "    },\n",
      "    \"degraded_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"Balance payable 1,122.29\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"Balance payable 1,122.29\",\n",
      "      \"complete\": true,\n",
      "      \"char_edits\": 0,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 0,\n",
      "      \"words\": 3,\n",
      "      \"exact\": true\n",
      "    }\n",
      "  },\n",
      "  \"clean_adapter\": {\n",
      "    \"clean_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\",\n",
      "      \"complete\": true,\n",
      "      \"char_edits\": 71,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 16,\n",
      "      \"words\": 3,\n",
      "      \"exact\": false\n",
      "    },\n",
      "    \"degraded_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"Balance payable 1,122.29\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"Balance payable 1,122.29\",\n",
      "      \"complete\": true,\n",
      "      \"char_edits\": 0,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 0,\n",
      "      \"words\": 3,\n",
      "      \"exact\": true\n",
      "    }\n",
      "  },\n",
      "  \"varied_adapter\": {\n",
      "    \"clean_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\",\n",
      "      \"complete\": true,\n",
      "      \"char_edits\": 74,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 15,\n",
      "      \"words\": 3,\n",
      "      \"exact\": false\n",
      "    },\n",
      "    \"degraded_novel\": {\n",
      "      \"key\": \"SF-177277\",\n",
      "      \"family\": \"novel-00\",\n",
      "      \"truth\": \"Balance payable 1,122.29\",\n",
      "      \"prediction\": \"Balance payable 1,122.29\",\n",
      "      \"raw_truth\": \"Balance payable 1,122.29\",\n",
      "      \"raw_prediction\": \"Balance payable 1,122.29\",\n",
      "      \"complete\": true,\n",
      "      \"char_edits\": 0,\n",
      "      \"chars\": 24,\n",
      "      \"word_edits\": 0,\n",
      "      \"words\": 3,\n",
      "      \"exact\": true\n",
      "    }\n",
      "  }\n",
      "}\n",
      "Opening crop mask: {\"image_tokens\": 28, \"masked_prefix_tokens\": 64, \"first_supervised_token\": \"Balance\"}\n",
      "{\"elapsed_seconds\": 438.412, \"gpu\": \"Tesla T4\", \"model\": {\"id\": \"Qwen/Qwen2-VL-2B-Instruct\", \"revision\": \"1860c46f12b7449d0f5b426a7474ab715342bc65\"}, \"packages\": {\"torch\": \"2.14.1+cu130\", \"transformers\": \"4.51.3\", \"peft\": \"0.15.2\", \"bitsandbytes\": \"0.50.2\", \"Pillow\": \"11.3.0\", \"datasets\": \"3.6.0\"}, \"catalogue\": \"course-invoice-v1\", \"seed\": 42, \"scores\": {\"tesseract\": {\"clean_novel\": {\"count\": 32, \"exact\": 0.71875, \"cer\": 0.011387163561076604, \"wer\": 0.12345679012345678, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"Pay this amount 728.51\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"Pay this amount 728.51\", \"complete\": null, \"char_edits\": 0, \"chars\": 22, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"Service fee notice, 2025-06-22\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"Service fee notice, 2025-06-22\", \"complete\": null, \"char_edits\": 0, \"chars\": 30, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"Door seal: 133.85 each for 8 units\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"Door seal: 133.85 each for 8 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 34, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"Remittance advice for SF-254979 (USD)\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"Remittance advice for SF-254979 (USD)\", \"complete\": null, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"Plus tax 206.46\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"Plus tax 206.46\", \"complete\": null, \"char_edits\": 0, \"chars\": 15, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"Bench calibration: 156,26 each for 3units\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"Bench calibration: 156,26 each for 3units\", \"complete\": null, \"char_edits\": 1, \"chars\": 42, \"word_edits\": 2, \"words\": 7, \"exact\": false}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"Billing details / SF-265176\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"Billing details / SF-265176\", \"complete\": null, \"char_edits\": 0, \"chars\": 27, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"complete\": null, \"char_edits\": 0, \"chars\": 49, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"Unit 44,43 / 4 times / Cooling filter\", \"complete\": null, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"Tax 379.06\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"Tax 379.06\", \"complete\": null, \"char_edits\": 0, \"chars\": 10, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"Pay thisamount 150.57\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"Pay thisamount 150.57\", \"complete\": null, \"char_edits\": 1, \"chars\": 22, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"Unit 125.32 /9 times/ Carrier adjustment\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"Unit 125.32 /9 times/ Carrier adjustment\", \"complete\": null, \"char_edits\": 2, \"chars\": 42, \"word_edits\": 4, \"words\": 8, \"exact\": false}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"Issued on 2026-04-09\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"Issued on 2026-04-09\", \"complete\": null, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"Document date 2026-06-15\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"Document date 2026-06-15\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"Net charges 1,092.80 / Tax 142.06\", \"complete\": null, \"char_edits\": 0, \"chars\": 33, \"word_edits\": 0, \"words\": 6, \"exact\": true}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"Amount reguested 561,38\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"Amount reguested 561,38\", \"complete\": null, \"char_edits\": 1, \"chars\": 23, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 43, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"Sold by Sample Supplier 8608\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"Sold by Sample Supplier 8608\", \"complete\": null, \"char_edits\": 0, \"chars\": 28, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"3x Cooling filter @ 227.83 perunit\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"3x Cooling filter @ 227.83 perunit\", \"complete\": null, \"char_edits\": 2, \"chars\": 36, \"word_edits\": 4, \"words\": 8, \"exact\": false}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"Amount reguested 3,051.50\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"Amount reguested 3,051.50\", \"complete\": null, \"char_edits\": 1, \"chars\": 25, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"Invoice currency USD\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"Invoice currency USD\", \"complete\": null, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"8x Door seal @ 196.62 per unit\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"8x Door seal @ 196.62 per unit\", \"complete\": null, \"char_edits\": 1, \"chars\": 31, \"word_edits\": 2, \"words\": 8, \"exact\": false}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"Sample Supplier 4464\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"Sample Supplier 4464\", \"complete\": null, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"Pre-tax 680,21/ Tax assessment 88,43 / Final bill 768,64\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"Pre-tax 680,21/ Tax assessment 88,43 / Final bill 768,64\", \"complete\": null, \"char_edits\": 1, \"chars\": 57, \"word_edits\": 2, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"Billing details / SF-750969\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"Billing details / SF-750969\", \"complete\": null, \"char_edits\": 0, \"chars\": 27, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"5x Mounting plate @ 36.61 per unit\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"5x Mounting plate @ 36.61 per unit\", \"complete\": null, \"char_edits\": 1, \"chars\": 35, \"word_edits\": 2, \"words\": 8, \"exact\": false}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"Fee subtotal 1,693.05\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"Fee subtotal 1,693.05\", \"complete\": null, \"char_edits\": 0, \"chars\": 21, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"Sample Supplier 8417 / statement SF-251393\", \"complete\": null, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 6, \"exact\": true}]}, \"degraded_novel\": {\"count\": 32, \"exact\": 0.53125, \"cer\": 0.021739130434782608, \"wer\": 0.15432098765432098, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"Pay thisamount 728.51\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"Pay thisamount 728.51\", \"complete\": null, \"char_edits\": 1, \"chars\": 22, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"Service fee notice, 2025-06-22\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"Service fee notice, 2025-06-22\", \"complete\": null, \"char_edits\": 0, \"chars\": 30, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"Door seal: 133.85 each for 8 units\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"Door seal: 133.85 each for 8 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 34, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"emittance advice for SF-254979 (USD)\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"emittance advice for SF-254979 (USD)\", \"complete\": null, \"char_edits\": 1, \"chars\": 37, \"word_edits\": 1, \"words\": 5, \"exact\": false}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"Plus tax 206.46\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"Plus tax 206.46\", \"complete\": null, \"char_edits\": 0, \"chars\": 15, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"Bench calibration: 156,26 each for 3 units\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"Bench calibration: 156,26 each for 3 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"billing details / SF-265176\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"billing details / SF-265176\", \"complete\": null, \"char_edits\": 1, \"chars\": 27, \"word_edits\": 1, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"complete\": null, \"char_edits\": 0, \"chars\": 49, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"Unit 44,43 / 4 times/ Cooling filter\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"Unit 44,43 / 4 times/ Cooling filter\", \"complete\": null, \"char_edits\": 1, \"chars\": 37, \"word_edits\": 2, \"words\": 8, \"exact\": false}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"Tax 379.06\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"Tax 379.06\", \"complete\": null, \"char_edits\": 0, \"chars\": 10, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"Pay thisamount 150.57\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"Pay thisamount 150.57\", \"complete\": null, \"char_edits\": 1, \"chars\": 22, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"Unit 125.32 /9times/ Carrier adjustment\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"Unit 125.32 /9times/ Carrier adjustment\", \"complete\": null, \"char_edits\": 3, \"chars\": 42, \"word_edits\": 4, \"words\": 8, \"exact\": false}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"Issued on 2026-04-09\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"Issued on 2026-04-09\", \"complete\": null, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"Document date 2026-06-15\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"Document date 2026-06-15\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"Net charges 1,092.80/ Tax 142.06\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"Net charges 1,092.80/ Tax 142.06\", \"complete\": null, \"char_edits\": 1, \"chars\": 33, \"word_edits\": 2, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"Amount reguested 561,38\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"Amount reguested 561,38\", \"complete\": null, \"char_edits\": 1, \"chars\": 23, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"complete\": null, \"char_edits\": 0, \"chars\": 43, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"sold by Sample Supplier 8608\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"sold by Sample Supplier 8608\", \"complete\": null, \"char_edits\": 1, \"chars\": 28, \"word_edits\": 1, \"words\": 5, \"exact\": false}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"3x Cooling filter @ 227.83 per unit\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"3x Cooling filter @ 227.83 per unit\", \"complete\": null, \"char_edits\": 1, \"chars\": 36, \"word_edits\": 2, \"words\": 8, \"exact\": false}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"Amount requested 3,051.50\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"Amount requested 3,051.50\", \"complete\": null, \"char_edits\": 0, \"chars\": 25, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"Invoice currency USD\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"Invoice currency USD\", \"complete\": null, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"29X Door seal @ 196.62 per unit\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"29X Door seal @ 196.62 per unit\", \"complete\": null, \"char_edits\": 3, \"chars\": 31, \"word_edits\": 2, \"words\": 8, \"exact\": false}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"Sample Supplier 4464\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"Sample Supplier 4464\", \"complete\": null, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"\\\"Te-lax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"\\\"Te-lax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"complete\": null, \"char_edits\": 3, \"chars\": 57, \"word_edits\": 1, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"billing details / SF-750969\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"billing details / SF-750969\", \"complete\": null, \"char_edits\": 1, \"chars\": 27, \"word_edits\": 1, \"words\": 4, \"exact\": false}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"5x Mounting plate @ 36.61 per unit\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"5x Mounting plate @ 36.61 per unit\", \"complete\": null, \"char_edits\": 1, \"chars\": 35, \"word_edits\": 2, \"words\": 8, \"exact\": false}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"Fee subtotal 1,693.05\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"Fee subtotal 1,693.05\", \"complete\": null, \"char_edits\": 0, \"chars\": 21, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"Sampie Supplier 8417 / statement SF-251393\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"Sampie Supplier 8417 / statement SF-251393\", \"complete\": null, \"char_edits\": 1, \"chars\": 42, \"word_edits\": 1, \"words\": 6, \"exact\": false}]}, \"cord_lines\": {\"count\": 20, \"exact\": 0.4, \"cer\": 0.22962962962962963, \"wer\": 0.4444444444444444, \"rows\": [{\"key\": \"cord-0\", \"family\": \"cord-0\", \"truth\": \"-TICKET CP\", \"prediction\": \"-TICKET CP\", \"raw_truth\": \"-TICKET CP\", \"raw_prediction\": \"-TICKET CP\", \"complete\": null, \"char_edits\": 0, \"chars\": 10, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"cord-1\", \"family\": \"cord-1\", \"truth\": \"J.STB PROMO\", \"prediction\": \"J.SIB PROMO\", \"raw_truth\": \"J.STB PROMO\", \"raw_prediction\": \"J.SIB PROMO\", \"complete\": null, \"char_edits\": 1, \"chars\": 11, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-2\", \"family\": \"cord-2\", \"truth\": \"JASMINE MT ( L )\", \"prediction\": \"SHIN\", \"raw_truth\": \"JASMINE MT ( L )\", \"raw_prediction\": \"SHIN\", \"complete\": null, \"char_edits\": 13, \"chars\": 16, \"word_edits\": 5, \"words\": 5, \"exact\": false}, {\"key\": \"cord-3\", \"family\": \"cord-3\", \"truth\": \"DONAT GULA\", \"prediction\": \"DONAT GULA\", \"raw_truth\": \"DONAT GULA\", \"raw_prediction\": \"DONAT GULA\", \"complete\": null, \"char_edits\": 0, \"chars\": 10, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"cord-4\", \"family\": \"cord-4\", \"truth\": \"ICE BLACKCOFFE\", \"prediction\": \"MGE BUND KC OFFE\", \"raw_truth\": \"ICE BLACKCOFFE\", \"raw_prediction\": \"MGE BUND KC OFFE\", \"complete\": null, \"char_edits\": 7, \"chars\": 14, \"word_edits\": 4, \"words\": 2, \"exact\": false}, {\"key\": \"cord-5\", \"family\": \"cord-5\", \"truth\": \"TRAD KY TOAST CARTE\", \"prediction\": \"TRAD KY TOAST CARTE\", \"raw_truth\": \"TRAD KY TOAST CARTE\", \"raw_prediction\": \"TRAD KY TOAST CARTE\", \"complete\": null, \"char_edits\": 0, \"chars\": 19, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"cord-6\", \"family\": \"cord-6\", \"truth\": \"EGG TART\", \"prediction\": \":GG TART\", \"raw_truth\": \"EGG TART\", \"raw_prediction\": \":GG TART\", \"complete\": null, \"char_edits\": 1, \"chars\": 8, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-7\", \"family\": \"cord-7\", \"truth\": \"Kupon 15\", \"prediction\": \"Kupon 15\", \"raw_truth\": \"Kupon 15\", \"raw_prediction\": \"Kupon 15\", \"complete\": null, \"char_edits\": 0, \"chars\": 8, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"cord-8\", \"family\": \"cord-8\", \"truth\": \"[REG] BLACK SAKURA\", \"prediction\": \"[REG] BLACK SAKURA\", \"raw_truth\": \"[REG] BLACK SAKURA\", \"raw_prediction\": \"[REG] BLACK SAKURA\", \"complete\": null, \"char_edits\": 0, \"chars\": 18, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"cord-9\", \"family\": \"cord-9\", \"truth\": \"Sub Total 36000\", \"prediction\": \"Sub Total 38000\", \"raw_truth\": \"Sub Total 36000\", \"raw_prediction\": \"Sub Total 38000\", \"complete\": null, \"char_edits\": 1, \"chars\": 15, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-10\", \"family\": \"cord-10\", \"truth\": \"1 x\", \"prediction\": \"1 x\", \"raw_truth\": \"1 x\", \"raw_prediction\": \"1 x\", \"complete\": null, \"char_edits\": 0, \"chars\": 3, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"cord-11\", \"family\": \"cord-11\", \"truth\": \"BANABERRY FRESH CREAM CAK\", \"prediction\": \"\\\"BANABERRY FRESH CREAM CAK\", \"raw_truth\": \"BANABERRY FRESH CREAM CAK\", \"raw_prediction\": \"\\\"BANABERRY FRESH CREAM CAK\", \"complete\": null, \"char_edits\": 1, \"chars\": 25, \"word_edits\": 1, \"words\": 4, \"exact\": false}, {\"key\": \"cord-12\", \"family\": \"cord-12\", \"truth\": \"BLUS WANITA\", \"prediction\": \"RLUS WNITA\", \"raw_truth\": \"BLUS WANITA\", \"raw_prediction\": \"RLUS WNITA\", \"complete\": null, \"char_edits\": 2, \"chars\": 11, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-13\", \"family\": \"cord-13\", \"truth\": \"BASO KUAH\", \"prediction\": \"\", \"raw_truth\": \"BASO KUAH\", \"raw_prediction\": \"\", \"complete\": null, \"char_edits\": 9, \"chars\": 9, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-14\", \"family\": \"cord-14\", \"truth\": \"RedVelvet Cheese Slc\", \"prediction\": \"RedVelvet Cheese Sic\", \"raw_truth\": \"RedVelvet Cheese Slc\", \"raw_prediction\": \"RedVelvet Cheese Sic\", \"complete\": null, \"char_edits\": 1, \"chars\": 20, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-15\", \"family\": \"cord-15\", \"truth\": \"Lemon Tea (L)\", \"prediction\": \"Lemon Tea (L)\", \"raw_truth\": \"Lemon Tea (L)\", \"raw_prediction\": \"Lemon Tea (L)\", \"complete\": null, \"char_edits\": 0, \"chars\": 13, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"cord-16\", \"family\": \"cord-16\", \"truth\": \"[LG] BLACK SAKURA\", \"prediction\": \"[LG] BLACK SAKURA\", \"raw_truth\": \"[LG] BLACK SAKURA\", \"raw_prediction\": \"[LG] BLACK SAKURA\", \"complete\": null, \"char_edits\": 0, \"chars\": 17, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"cord-17\", \"family\": \"cord-17\", \"truth\": \"Goblin's Mace\", \"prediction\": \"MOONS Eee\", \"raw_truth\": \"Goblin's Mace\", \"raw_prediction\": \"MOONS Eee\", \"complete\": null, \"char_edits\": 11, \"chars\": 13, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-18\", \"family\": \"cord-18\", \"truth\": \"Sub Tofal 156000\", \"prediction\": \"Sub Tofal 186000\", \"raw_truth\": \"Sub Tofal 156000\", \"raw_prediction\": \"Sub Tofal 186000\", \"complete\": null, \"char_edits\": 1, \"chars\": 16, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-19\", \"family\": \"cord-19\", \"truth\": \"AMBUSH DBL CHS\", \"prediction\": \"\", \"raw_truth\": \"AMBUSH DBL CHS\", \"raw_prediction\": \"\", \"complete\": null, \"char_edits\": 14, \"chars\": 14, \"word_edits\": 3, \"words\": 3, \"exact\": false}]}}, \"frozen\": {\"clean_novel\": {\"count\": 32, \"exact\": 0.0, \"cer\": 0.9720496894409938, \"wer\": 1.0, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 23, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 21, \"chars\": 22, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"(11,11),(987,987)\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"(11,11),(987,987)\", \"complete\": true, \"char_edits\": 29, \"chars\": 30, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 24, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"(199,111),(801,897)\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"(199,111),(801,897)\", \"complete\": true, \"char_edits\": 31, \"chars\": 34, \"word_edits\": 7, \"words\": 7, \"exact\": false}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"(131,13),(869,999)\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"(131,13),(869,999)\", \"complete\": true, \"char_edits\": 34, \"chars\": 37, \"word_edits\": 5, \"words\": 5, \"exact\": false}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"(131,111),(869,899)\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"(131,111),(869,899)\", \"complete\": true, \"char_edits\": 18, \"chars\": 15, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 40, \"chars\": 42, \"word_edits\": 7, \"words\": 7, \"exact\": false}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 26, \"chars\": 27, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 47, \"chars\": 49, \"word_edits\": 7, \"words\": 7, \"exact\": false}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 35, \"chars\": 37, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 39, \"chars\": 42, \"word_edits\": 7, \"words\": 7, \"exact\": false}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"(111,111),(888,897)\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"(111,111),(888,897)\", \"complete\": true, \"char_edits\": 19, \"chars\": 10, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 22, \"chars\": 22, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 39, \"chars\": 42, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"(131,101),(869,999)\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"(131,101),(869,999)\", \"complete\": true, \"char_edits\": 19, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 24, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 30, \"chars\": 33, \"word_edits\": 6, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"(131,101),(869,907)\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"(131,101),(869,907)\", \"complete\": true, \"char_edits\": 23, \"chars\": 23, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"(10,10),(988,988)\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"(10,10),(988,988)\", \"complete\": true, \"char_edits\": 42, \"chars\": 43, \"word_edits\": 7, \"words\": 7, \"exact\": false}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"(207,101),(793,999)\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"(207,101),(793,999)\", \"complete\": true, \"char_edits\": 28, \"chars\": 28, \"word_edits\": 5, \"words\": 5, \"exact\": false}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"(10,10),(987,987)\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"(10,10),(987,987)\", \"complete\": true, \"char_edits\": 35, \"chars\": 36, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 24, \"chars\": 25, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 24, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"(111,111),(888,897)\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"(111,111),(888,897)\", \"complete\": true, \"char_edits\": 20, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"(10,10),(988,988)\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"(10,10),(988,988)\", \"complete\": true, \"char_edits\": 30, \"chars\": 31, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 20, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 52, \"chars\": 57, \"word_edits\": 10, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 26, \"chars\": 27, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"(11,11),(987,987)\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"(11,11),(987,987)\", \"complete\": true, \"char_edits\": 35, \"chars\": 35, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 19, \"chars\": 21, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"(10,10),(990,990)\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"(10,10),(990,990)\", \"complete\": true, \"char_edits\": 41, \"chars\": 42, \"word_edits\": 6, \"words\": 6, \"exact\": false}]}, \"degraded_novel\": {\"count\": 32, \"exact\": 0.65625, \"cer\": 0.16149068322981366, \"wer\": 0.19753086419753085, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"728.51\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"728.51\", \"complete\": true, \"char_edits\": 16, \"chars\": 22, \"word_edits\": 3, \"words\": 4, \"exact\": false}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"Service fee notice, 2025-06-22\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"Service fee notice, 2025-06-22\", \"complete\": true, \"char_edits\": 0, \"chars\": 30, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"Door seal: 133.85 each for 8 units\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"Door seal: 133.85 each for 8 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 34, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"Remittance advice for SF-254979 (USD)\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"Remittance advice for SF-254979 (USD)\", \"complete\": true, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"206.46\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"206.46\", \"complete\": true, \"char_edits\": 9, \"chars\": 15, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"156,26 each for 3 units\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"156,26 each for 3 units\", \"complete\": true, \"char_edits\": 19, \"chars\": 42, \"word_edits\": 2, \"words\": 7, \"exact\": false}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"Billing details/ SF-265176\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"Billing details/ SF-265176\", \"complete\": true, \"char_edits\": 1, \"chars\": 27, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"complete\": true, \"char_edits\": 0, \"chars\": 49, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"Unit 44,43 / 4 times / Cooling filter\", \"complete\": true, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"Tax 379.06\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"Tax 379.06\", \"complete\": true, \"char_edits\": 0, \"chars\": 10, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"Pay this amount 150.57\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"Pay this amount 150.57\", \"complete\": true, \"char_edits\": 0, \"chars\": 22, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"2026 04 09\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"2026 04 09\", \"complete\": true, \"char_edits\": 12, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"2020-06-15\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"2020-06-15\", \"complete\": true, \"char_edits\": 15, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"Net charges 1,092.80 / Tax 142.00\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"Net charges 1,092.80 / Tax 142.00\", \"complete\": true, \"char_edits\": 1, \"chars\": 33, \"word_edits\": 1, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"561,38\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"561,38\", \"complete\": true, \"char_edits\": 17, \"chars\": 23, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 43, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"Sold by Sample Supplier 8608\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"Sold by Sample Supplier 8608\", \"complete\": true, \"char_edits\": 0, \"chars\": 28, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"3 x Cooling filter @ 227.83 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 36, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"Amount requested 3,051.50\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"Amount requested 3,051.50\", \"complete\": true, \"char_edits\": 0, \"chars\": 25, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"Invoice currency USD\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"Invoice currency USD\", \"complete\": true, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"8 x Door seal @ 196.62 per unit\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"8 x Door seal @ 196.62 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 31, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"Sample Supplier 4464\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"Sample Supplier 4464\", \"complete\": true, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"680.21\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"680.21\", \"complete\": true, \"char_edits\": 52, \"chars\": 57, \"word_edits\": 10, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"Billing details/ SF-750969\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"Billing details/ SF-750969\", \"complete\": true, \"char_edits\": 1, \"chars\": 27, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"5 x Mounting plate @ 36.61 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 35, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"1,693.05\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"1,693.05\", \"complete\": true, \"char_edits\": 13, \"chars\": 21, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"Sample Supplier 8417 / statement SF-251393\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 6, \"exact\": true}]}, \"cord_lines\": {\"count\": 20, \"exact\": 0.05, \"cer\": 1.0222222222222221, \"wer\": 0.8703703703703703, \"rows\": [{\"key\": \"cord-0\", \"family\": \"cord-0\", \"truth\": \"-TICKET CP\", \"prediction\": \"(131,101),(869,907)\", \"raw_truth\": \"-TICKET CP\", \"raw_prediction\": \"(131,101),(869,907)\", \"complete\": true, \"char_edits\": 19, \"chars\": 10, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-1\", \"family\": \"cord-1\", \"truth\": \"J.STB PROMO\", \"prediction\": \"J.STD PROMO\", \"raw_truth\": \"J.STB PROMO\", \"raw_prediction\": \"J.STD PROMO\", \"complete\": true, \"char_edits\": 1, \"chars\": 11, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-2\", \"family\": \"cord-2\", \"truth\": \"JASMINE MT ( L )\", \"prediction\": \"(10,10),(987,987)\", \"raw_truth\": \"JASMINE MT ( L )\", \"raw_prediction\": \"(10,10),(987,987)\", \"complete\": true, \"char_edits\": 16, \"chars\": 16, \"word_edits\": 5, \"words\": 5, \"exact\": false}, {\"key\": \"cord-3\", \"family\": \"cord-3\", \"truth\": \"DONAT GULA\", \"prediction\": \"(10,10),(987,987)\", \"raw_truth\": \"DONAT GULA\", \"raw_prediction\": \"(10,10),(987,987)\", \"complete\": true, \"char_edits\": 17, \"chars\": 10, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-4\", \"family\": \"cord-4\", \"truth\": \"ICE BLACKCOFFE\", \"prediction\": \"(10,10),(990,990)\", \"raw_truth\": \"ICE BLACKCOFFE\", \"raw_prediction\": \"(10,10),(990,990)\", \"complete\": true, \"char_edits\": 17, \"chars\": 14, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-5\", \"family\": \"cord-5\", \"truth\": \"TRAD KY TOAST CARTE\", \"prediction\": \"trad ky toast carte\", \"raw_truth\": \"TRAD KY TOAST CARTE\", \"raw_prediction\": \"trad ky toast carte\", \"complete\": true, \"char_edits\": 16, \"chars\": 19, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"cord-6\", \"family\": \"cord-6\", \"truth\": \"EGG TART\", \"prediction\": \"EGG TART\", \"raw_truth\": \"EGG TART\", \"raw_prediction\": \"EGG TART\", \"complete\": true, \"char_edits\": 0, \"chars\": 8, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"cord-7\", \"family\": \"cord-7\", \"truth\": \"Kupon 15\", \"prediction\": \"(10,10),(990,990)\", \"raw_truth\": \"Kupon 15\", \"raw_prediction\": \"(10,10),(990,990)\", \"complete\": true, \"char_edits\": 17, \"chars\": 8, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-8\", \"family\": \"cord-8\", \"truth\": \"[REG] BLACK SAKURA\", \"prediction\": \"(10,10),(988,988)\", \"raw_truth\": \"[REG] BLACK SAKURA\", \"raw_prediction\": \"(10,10),(988,988)\", \"complete\": true, \"char_edits\": 18, \"chars\": 18, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"cord-9\", \"family\": \"cord-9\", \"truth\": \"Sub Total 36000\", \"prediction\": \"(10,10),(990,990)\", \"raw_truth\": \"Sub Total 36000\", \"raw_prediction\": \"(10,10),(990,990)\", \"complete\": true, \"char_edits\": 16, \"chars\": 15, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"cord-10\", \"family\": \"cord-10\", \"truth\": \"1 x\", \"prediction\": \"1\", \"raw_truth\": \"1 x\", \"raw_prediction\": \"1\", \"complete\": true, \"char_edits\": 2, \"chars\": 3, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-11\", \"family\": \"cord-11\", \"truth\": \"BANABERRY FRESH CREAM CAK\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"BANABERRY FRESH CREAM CAK\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 25, \"chars\": 25, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"cord-12\", \"family\": \"cord-12\", \"truth\": \"BLUS WANITA\", \"prediction\": \"(121,111),(879,111)\", \"raw_truth\": \"BLUS WANITA\", \"raw_prediction\": \"(121,111),(879,111)\", \"complete\": true, \"char_edits\": 19, \"chars\": 11, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-13\", \"family\": \"cord-13\", \"truth\": \"BASO KUAH\", \"prediction\": \"(12,12),(987,987)\", \"raw_truth\": \"BASO KUAH\", \"raw_prediction\": \"(12,12),(987,987)\", \"complete\": true, \"char_edits\": 17, \"chars\": 9, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-14\", \"family\": \"cord-14\", \"truth\": \"RedVelvet Cheese Slc\", \"prediction\": \"RedVelvet Cheese 61c\", \"raw_truth\": \"RedVelvet Cheese Slc\", \"raw_prediction\": \"RedVelvet Cheese 61c\", \"complete\": true, \"char_edits\": 2, \"chars\": 20, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-15\", \"family\": \"cord-15\", \"truth\": \"Lemon Tea (L)\", \"prediction\": \"(199,111),(801,111)\", \"raw_truth\": \"Lemon Tea (L)\", \"raw_prediction\": \"(199,111),(801,111)\", \"complete\": true, \"char_edits\": 17, \"chars\": 13, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"cord-16\", \"family\": \"cord-16\", \"truth\": \"[LG] BLACK SAKURA\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"[LG] BLACK SAKURA\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 17, \"chars\": 17, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"cord-17\", \"family\": \"cord-17\", \"truth\": \"Goblin's Mace\", \"prediction\": \"2\", \"raw_truth\": \"Goblin's Mace\", \"raw_prediction\": \"2\", \"complete\": true, \"char_edits\": 13, \"chars\": 13, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-18\", \"family\": \"cord-18\", \"truth\": \"Sub Tofal 156000\", \"prediction\": \"156000\", \"raw_truth\": \"Sub Tofal 156000\", \"raw_prediction\": \"156000\", \"complete\": true, \"char_edits\": 10, \"chars\": 16, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"cord-19\", \"family\": \"cord-19\", \"truth\": \"AMBUSH DBL CHS\", \"prediction\": \"(10,10),(990,990)\", \"raw_truth\": \"AMBUSH DBL CHS\", \"raw_prediction\": \"(10,10),(990,990)\", \"complete\": true, \"char_edits\": 17, \"chars\": 14, \"word_edits\": 3, \"words\": 3, \"exact\": false}]}}, \"clean_adapter\": {\"clean_novel\": {\"count\": 32, \"exact\": 0.0, \"cer\": 2.1594202898550723, \"wer\": 3.04320987654321, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 71, \"chars\": 24, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 69, \"chars\": 22, \"word_edits\": 16, \"words\": 4, \"exact\": false}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 67, \"chars\": 30, \"word_edits\": 16, \"words\": 4, \"exact\": false}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 68, \"chars\": 24, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 66, \"chars\": 34, \"word_edits\": 16, \"words\": 7, \"exact\": false}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 66, \"chars\": 37, \"word_edits\": 16, \"words\": 5, \"exact\": false}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 72, \"chars\": 15, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 65, \"chars\": 42, \"word_edits\": 16, \"words\": 7, \"exact\": false}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 67, \"chars\": 27, \"word_edits\": 16, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"The single line in the image is: \\\"The line is 100 feet long.\\\"\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"The single line in the image is: \\\"The line is 100 feet long.\\\"\", \"complete\": true, \"char_edits\": 49, \"chars\": 49, \"word_edits\": 13, \"words\": 7, \"exact\": false}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 64, \"chars\": 37, \"word_edits\": 16, \"words\": 8, \"exact\": false}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 65, \"chars\": 42, \"word_edits\": 16, \"words\": 7, \"exact\": false}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 75, \"chars\": 10, \"word_edits\": 16, \"words\": 2, \"exact\": false}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 69, \"chars\": 22, \"word_edits\": 16, \"words\": 4, \"exact\": false}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 62, \"chars\": 42, \"word_edits\": 16, \"words\": 8, \"exact\": false}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"1234567890\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"1234567890\", \"complete\": true, \"char_edits\": 18, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 71, \"chars\": 24, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 68, \"chars\": 33, \"word_edits\": 16, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 70, \"chars\": 23, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 65, \"chars\": 43, \"word_edits\": 16, \"words\": 7, \"exact\": false}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 68, \"chars\": 28, \"word_edits\": 16, \"words\": 5, \"exact\": false}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 65, \"chars\": 36, \"word_edits\": 16, \"words\": 8, \"exact\": false}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 70, \"chars\": 25, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 68, \"chars\": 24, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"The single line in the image is: \\\"The line is 100 meters long.\\\"\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"The single line in the image is: \\\"The line is 100 meters long.\\\"\", \"complete\": true, \"char_edits\": 56, \"chars\": 20, \"word_edits\": 13, \"words\": 3, \"exact\": false}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 67, \"chars\": 31, \"word_edits\": 16, \"words\": 8, \"exact\": false}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 71, \"chars\": 20, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 66, \"chars\": 57, \"word_edits\": 16, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 67, \"chars\": 27, \"word_edits\": 16, \"words\": 4, \"exact\": false}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 64, \"chars\": 35, \"word_edits\": 16, \"words\": 8, \"exact\": false}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 70, \"chars\": 21, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 67, \"chars\": 42, \"word_edits\": 16, \"words\": 6, \"exact\": false}]}, \"degraded_novel\": {\"count\": 32, \"exact\": 0.46875, \"cer\": 0.23395445134575568, \"wer\": 0.29012345679012347, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"728.51\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"728.51\", \"complete\": true, \"char_edits\": 16, \"chars\": 22, \"word_edits\": 3, \"words\": 4, \"exact\": false}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"Service fee notice, 2025-06-22\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"Service fee notice, 2025-06-22\", \"complete\": true, \"char_edits\": 0, \"chars\": 30, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"Door seal: 133.85 each for 8 units\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"Door seal: 133.85 each for 8 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 34, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"Remittance advice for SF-254979 (USD)\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"Remittance advice for SF-254979 (USD)\", \"complete\": true, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"206.46\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"206.46\", \"complete\": true, \"char_edits\": 9, \"chars\": 15, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"156,26 each for 3 units\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"156,26 each for 3 units\", \"complete\": true, \"char_edits\": 19, \"chars\": 42, \"word_edits\": 2, \"words\": 7, \"exact\": false}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"Billing details/ SF-265176\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"Billing details/ SF-265176\", \"complete\": true, \"char_edits\": 1, \"chars\": 27, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"complete\": true, \"char_edits\": 0, \"chars\": 49, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"44,43 / 4 times / Cooling filter\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"44,43 / 4 times / Cooling filter\", \"complete\": true, \"char_edits\": 5, \"chars\": 37, \"word_edits\": 1, \"words\": 8, \"exact\": false}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"80.90\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"80.90\", \"complete\": true, \"char_edits\": 38, \"chars\": 42, \"word_edits\": 7, \"words\": 7, \"exact\": false}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"379.06\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"379.06\", \"complete\": true, \"char_edits\": 4, \"chars\": 10, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"150.57\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"150.57\", \"complete\": true, \"char_edits\": 16, \"chars\": 22, \"word_edits\": 3, \"words\": 4, \"exact\": false}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"125.32 / 9 times / Carrier adjustment\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"125.32 / 9 times / Carrier adjustment\", \"complete\": true, \"char_edits\": 5, \"chars\": 42, \"word_edits\": 1, \"words\": 8, \"exact\": false}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"2026 04 09\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"2026 04 09\", \"complete\": true, \"char_edits\": 12, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"2020-06-15\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"2020-06-15\", \"complete\": true, \"char_edits\": 15, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"Net charges 1,092.80 / Tax 142.00\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"Net charges 1,092.80 / Tax 142.00\", \"complete\": true, \"char_edits\": 1, \"chars\": 33, \"word_edits\": 1, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"561.38\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"561.38\", \"complete\": true, \"char_edits\": 18, \"chars\": 23, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 43, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"Sold by Sample Supplier 8608\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"Sold by Sample Supplier 8608\", \"complete\": true, \"char_edits\": 0, \"chars\": 28, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"3 x Cooling filter @ 227.83 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 36, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"Amount requested: 3,051.50\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"Amount requested: 3,051.50\", \"complete\": true, \"char_edits\": 1, \"chars\": 25, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"Invoice currency USD\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"Invoice currency USD\", \"complete\": true, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"8 x Door seal @ 196.62 per unit\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"8 x Door seal @ 196.62 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 31, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"Sample Supplier 4464\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"Sample Supplier 4464\", \"complete\": true, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"680.21\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"680.21\", \"complete\": true, \"char_edits\": 52, \"chars\": 57, \"word_edits\": 10, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"Billing details / SF-750969\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"Billing details / SF-750969\", \"complete\": true, \"char_edits\": 0, \"chars\": 27, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"5 x Mounting plate @ 36.61 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 35, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"1,693.05\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"1,693.05\", \"complete\": true, \"char_edits\": 13, \"chars\": 21, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"Sample Supplier 8417/ statement SF-251393\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"Sample Supplier 8417/ statement SF-251393\", \"complete\": true, \"char_edits\": 1, \"chars\": 42, \"word_edits\": 2, \"words\": 6, \"exact\": false}]}, \"cord_lines\": {\"count\": 20, \"exact\": 0.0, \"cer\": 4.203703703703703, \"wer\": 4.5, \"rows\": [{\"key\": \"cord-0\", \"family\": \"cord-0\", \"truth\": \"-TICKET CP\", \"prediction\": \"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"\", \"raw_truth\": \"-TICKET CP\", \"raw_prediction\": \"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"\", \"complete\": false, \"char_edits\": 213, \"chars\": 10, \"word_edits\": 49, \"words\": 2, \"exact\": false}, {\"key\": \"cord-1\", \"family\": \"cord-1\", \"truth\": \"J.STB PROMO\", \"prediction\": \"J.STD PROMO\", \"raw_truth\": \"J.STB PROMO\", \"raw_prediction\": \"J.STD PROMO\", \"complete\": true, \"char_edits\": 1, \"chars\": 11, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-2\", \"family\": \"cord-2\", \"truth\": \"JASMINE MT ( L )\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"JASMINE MT ( L )\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 74, \"chars\": 16, \"word_edits\": 16, \"words\": 5, \"exact\": false}, {\"key\": \"cord-3\", \"family\": \"cord-3\", \"truth\": \"DONAT GULA\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"DONAT GULA\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 77, \"chars\": 10, \"word_edits\": 16, \"words\": 2, \"exact\": false}, {\"key\": \"cord-4\", \"family\": \"cord-4\", \"truth\": \"ICE BLACKCOFFE\", \"prediction\": \"The single line in the image is: \\\"C\\\"\", \"raw_truth\": \"ICE BLACKCOFFE\", \"raw_prediction\": \"The single line in the image is: \\\"C\\\"\", \"complete\": true, \"char_edits\": 35, \"chars\": 14, \"word_edits\": 8, \"words\": 2, \"exact\": false}, {\"key\": \"cord-5\", \"family\": \"cord-5\", \"truth\": \"TRAD KY TOAST CARTE\", \"prediction\": \"Trad Ky Toast Carte\", \"raw_truth\": \"TRAD KY TOAST CARTE\", \"raw_prediction\": \"Trad Ky Toast Carte\", \"complete\": true, \"char_edits\": 12, \"chars\": 19, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"cord-6\", \"family\": \"cord-6\", \"truth\": \"EGG TART\", \"prediction\": \"Egg Tart\", \"raw_truth\": \"EGG TART\", \"raw_prediction\": \"Egg Tart\", \"complete\": true, \"char_edits\": 5, \"chars\": 8, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-7\", \"family\": \"cord-7\", \"truth\": \"Kupon 15\", \"prediction\": \"The single line in the image is: \\\"The red ball is on the red table.\\\"\", \"raw_truth\": \"Kupon 15\", \"raw_prediction\": \"The single line in the image is: \\\"The red ball is on the red table.\\\"\", \"complete\": true, \"char_edits\": 65, \"chars\": 8, \"word_edits\": 15, \"words\": 2, \"exact\": false}, {\"key\": \"cord-8\", \"family\": \"cord-8\", \"truth\": \"[REG] BLACK SAKURA\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"[REG] BLACK SAKURA\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 77, \"chars\": 18, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"cord-9\", \"family\": \"cord-9\", \"truth\": \"Sub Total 36000\", \"prediction\": \"1. 2. 3.\", \"raw_truth\": \"Sub Total 36000\", \"raw_prediction\": \"1. 2. 3.\", \"complete\": true, \"char_edits\": 12, \"chars\": 15, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"cord-10\", \"family\": \"cord-10\", \"truth\": \"1 x\", \"prediction\": \"1\", \"raw_truth\": \"1 x\", \"raw_prediction\": \"1\", \"complete\": true, \"char_edits\": 2, \"chars\": 3, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-11\", \"family\": \"cord-11\", \"truth\": \"BANABERRY FRESH CREAM CAK\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"BANABERRY FRESH CREAM CAK\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 76, \"chars\": 25, \"word_edits\": 16, \"words\": 4, \"exact\": false}, {\"key\": \"cord-12\", \"family\": \"cord-12\", \"truth\": \"BLUS WANITA\", \"prediction\": \"The image you provided is not clear enough to transcribe a single line. Please provide a clearer image.\", \"raw_truth\": \"BLUS WANITA\", \"raw_prediction\": \"The image you provided is not clear enough to transcribe a single line. Please provide a clearer image.\", \"complete\": true, \"char_edits\": 102, \"chars\": 11, \"word_edits\": 18, \"words\": 2, \"exact\": false}, {\"key\": \"cord-13\", \"family\": \"cord-13\", \"truth\": \"BASO KUAH\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"BASO KUAH\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 78, \"chars\": 9, \"word_edits\": 16, \"words\": 2, \"exact\": false}, {\"key\": \"cord-14\", \"family\": \"cord-14\", \"truth\": \"RedVelvet Cheese Slc\", \"prediction\": \"RedVelvet Cheese 61c\", \"raw_truth\": \"RedVelvet Cheese Slc\", \"raw_prediction\": \"RedVelvet Cheese 61c\", \"complete\": true, \"char_edits\": 2, \"chars\": 20, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-15\", \"family\": \"cord-15\", \"truth\": \"Lemon Tea (L)\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Lemon Tea (L)\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 71, \"chars\": 13, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"cord-16\", \"family\": \"cord-16\", \"truth\": \"[LG] BLACK SAKURA\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"[LG] BLACK SAKURA\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 77, \"chars\": 17, \"word_edits\": 16, \"words\": 3, \"exact\": false}, {\"key\": \"cord-17\", \"family\": \"cord-17\", \"truth\": \"Goblin's Mace\", \"prediction\": \"The image does not contain any text or information to transcribe.\", \"raw_truth\": \"Goblin's Mace\", \"raw_prediction\": \"The image does not contain any text or information to transcribe.\", \"complete\": true, \"char_edits\": 58, \"chars\": 13, \"word_edits\": 11, \"words\": 2, \"exact\": false}, {\"key\": \"cord-18\", \"family\": \"cord-18\", \"truth\": \"Sub Tofal 156000\", \"prediction\": \"156000\", \"raw_truth\": \"Sub Tofal 156000\", \"raw_prediction\": \"156000\", \"complete\": true, \"char_edits\": 10, \"chars\": 16, \"word_edits\": 2, \"words\": 3, \"exact\": false}, {\"key\": \"cord-19\", \"family\": \"cord-19\", \"truth\": \"AMBUSH DBL CHS\", \"prediction\": \"The image is not clear enough to transcribe a single line. Please provide a clearer image.\", \"raw_truth\": \"AMBUSH DBL CHS\", \"raw_prediction\": \"The image is not clear enough to transcribe a single line. Please provide a clearer image.\", \"complete\": true, \"char_edits\": 88, \"chars\": 14, \"word_edits\": 16, \"words\": 3, \"exact\": false}]}}, \"varied_adapter\": {\"clean_novel\": {\"count\": 32, \"exact\": 0.0, \"cer\": 1.8436853002070392, \"wer\": 2.3209876543209877, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 74, \"chars\": 24, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 21, \"chars\": 22, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 60, \"chars\": 30, \"word_edits\": 12, \"words\": 4, \"exact\": false}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"The single line in the image is: \\\"A man is walking on the street.\\\"\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"The single line in the image is: \\\"A man is walking on the street.\\\"\", \"complete\": true, \"char_edits\": 53, \"chars\": 24, \"word_edits\": 14, \"words\": 3, \"exact\": false}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 57, \"chars\": 34, \"word_edits\": 12, \"words\": 7, \"exact\": false}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"The single line in the image is: \\\"Ways to improve your health.\\\"\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"The single line in the image is: \\\"Ways to improve your health.\\\"\", \"complete\": true, \"char_edits\": 53, \"chars\": 37, \"word_edits\": 12, \"words\": 5, \"exact\": false}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 78, \"chars\": 15, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"The single line in the image is: \\\"The line is a single line.\\\"\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"The single line in the image is: \\\"The line is a single line.\\\"\", \"complete\": true, \"char_edits\": 50, \"chars\": 42, \"word_edits\": 13, \"words\": 7, \"exact\": false}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 70, \"chars\": 27, \"word_edits\": 15, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"The single line in the image is: \\\"Wield the power of the universe.\\\"\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"The single line in the image is: \\\"Wield the power of the universe.\\\"\", \"complete\": true, \"char_edits\": 57, \"chars\": 49, \"word_edits\": 13, \"words\": 7, \"exact\": false}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"(199,111),(801,217)\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"(199,111),(801,217)\", \"complete\": true, \"char_edits\": 36, \"chars\": 37, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 69, \"chars\": 42, \"word_edits\": 15, \"words\": 7, \"exact\": false}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"The single line in the image is: \\\"Purple(10,10),(990,990).\\\"\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"The single line in the image is: \\\"Purple(10,10),(990,990).\\\"\", \"complete\": true, \"char_edits\": 54, \"chars\": 10, \"word_edits\": 8, \"words\": 2, \"exact\": false}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"Gaines\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"Gaines\", \"complete\": true, \"char_edits\": 19, \"chars\": 22, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"The single line in the image is: \\\"The line is a single line.\\\"\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"The single line in the image is: \\\"The line is a single line.\\\"\", \"complete\": true, \"char_edits\": 46, \"chars\": 42, \"word_edits\": 13, \"words\": 8, \"exact\": false}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 78, \"chars\": 20, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"The line in the image is: \\\"The line only.\\\"\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"The line in the image is: \\\"The line only.\\\"\", \"complete\": true, \"char_edits\": 35, \"chars\": 24, \"word_edits\": 9, \"words\": 3, \"exact\": false}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 62, \"chars\": 33, \"word_edits\": 12, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 75, \"chars\": 23, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 69, \"chars\": 43, \"word_edits\": 15, \"words\": 7, \"exact\": false}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"BACO\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"BACO\", \"complete\": true, \"char_edits\": 28, \"chars\": 28, \"word_edits\": 5, \"words\": 5, \"exact\": false}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 57, \"chars\": 36, \"word_edits\": 12, \"words\": 8, \"exact\": false}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 64, \"chars\": 25, \"word_edits\": 12, \"words\": 3, \"exact\": false}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"The single line in the image is: \\\"A man is walking on the street.\\\"\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"The single line in the image is: \\\"A man is walking on the street.\\\"\", \"complete\": true, \"char_edits\": 53, \"chars\": 24, \"word_edits\": 14, \"words\": 3, \"exact\": false}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 75, \"chars\": 20, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"The single line in the image is: \\\"A man(10,10),(991,991) is walking down the street.\\\"\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"The single line in the image is: \\\"A man(10,10),(991,991) is walking down the street.\\\"\", \"complete\": true, \"char_edits\": 72, \"chars\": 31, \"word_edits\": 14, \"words\": 8, \"exact\": false}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 62, \"chars\": 20, \"word_edits\": 12, \"words\": 3, \"exact\": false}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"The single line in the image is: \\\"Bailey\\\"\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"The single line in the image is: \\\"Bailey\\\"\", \"complete\": true, \"char_edits\": 47, \"chars\": 57, \"word_edits\": 10, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"The line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"The line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 65, \"chars\": 27, \"word_edits\": 14, \"words\": 4, \"exact\": false}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"The single line in the image is: \\\"G\\\"\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"The single line in the image is: \\\"G\\\"\", \"complete\": true, \"char_edits\": 30, \"chars\": 35, \"word_edits\": 8, \"words\": 8, \"exact\": false}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"The single line in the image is: \\\"Bling Bling(10,10),(991,991).\\\"\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"The single line in the image is: \\\"Bling Bling(10,10),(991,991).\\\"\", \"complete\": true, \"char_edits\": 54, \"chars\": 21, \"word_edits\": 9, \"words\": 3, \"exact\": false}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 58, \"chars\": 42, \"word_edits\": 12, \"words\": 6, \"exact\": false}]}, \"degraded_novel\": {\"count\": 32, \"exact\": 0.84375, \"cer\": 0.008281573498964804, \"wer\": 0.06172839506172839, \"rows\": [{\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-781239\", \"family\": \"novel-01\", \"truth\": \"Pay this amount 728.51\", \"prediction\": \"Pay this amount 728.51\", \"raw_truth\": \"Pay this amount 728.51\", \"raw_prediction\": \"Pay this amount 728.51\", \"complete\": true, \"char_edits\": 0, \"chars\": 22, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-357240\", \"family\": \"novel-02\", \"truth\": \"Service fee notice, 2025-06-22\", \"prediction\": \"Service fee notice, 2025-06-22\", \"raw_truth\": \"Service fee notice, 2025-06-22\", \"raw_prediction\": \"Service fee notice, 2025-06-22\", \"complete\": true, \"char_edits\": 0, \"chars\": 30, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-820102\", \"family\": \"novel-03\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-388963\", \"family\": \"novel-04\", \"truth\": \"Door seal: 133.85 each for 8 units\", \"prediction\": \"Door seal: 133.85 each for 8 units\", \"raw_truth\": \"Door seal: 133.85 each for 8 units\", \"raw_prediction\": \"Door seal: 133.85 each for 8 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 34, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-254979\", \"family\": \"novel-05\", \"truth\": \"Remittance advice for SF-254979 (USD)\", \"prediction\": \"Remittance advice for SF-254979 (USD)\", \"raw_truth\": \"Remittance advice for SF-254979 (USD)\", \"raw_prediction\": \"Remittance advice for SF-254979 (USD)\", \"complete\": true, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-526862\", \"family\": \"novel-06\", \"truth\": \"Plus tax 206.46\", \"prediction\": \"Plus tax 206.46\", \"raw_truth\": \"Plus tax 206.46\", \"raw_prediction\": \"Plus tax 206.46\", \"complete\": true, \"char_edits\": 0, \"chars\": 15, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-474019\", \"family\": \"novel-07\", \"truth\": \"Bench calibration: 156,26 each for 3 units\", \"prediction\": \"Bench calibration: 156,26 each for 3 units\", \"raw_truth\": \"Bench calibration: 156,26 each for 3 units\", \"raw_prediction\": \"Bench calibration: 156,26 each for 3 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-265176\", \"family\": \"novel-00\", \"truth\": \"Billing details / SF-265176\", \"prediction\": \"Billing details/ SF-265176\", \"raw_truth\": \"Billing details / SF-265176\", \"raw_prediction\": \"Billing details/ SF-265176\", \"complete\": true, \"char_edits\": 1, \"chars\": 27, \"word_edits\": 2, \"words\": 4, \"exact\": false}, {\"key\": \"SF-548824\", \"family\": \"novel-01\", \"truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_truth\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"raw_prediction\": \"Sample Supplier 3219 / Document issued 2025-11-16\", \"complete\": true, \"char_edits\": 0, \"chars\": 49, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-587791\", \"family\": \"novel-02\", \"truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"prediction\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_truth\": \"Unit 44,43 / 4 times / Cooling filter\", \"raw_prediction\": \"Unit 44,43 / 4 times / Cooling filter\", \"complete\": true, \"char_edits\": 0, \"chars\": 37, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-931161\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_truth\": \"Carrier adjustment: 80,90 each for 6 units\", \"raw_prediction\": \"Carrier adjustment: 80,90 each for 6 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-652364\", \"family\": \"novel-04\", \"truth\": \"Tax 379.06\", \"prediction\": \"Tax 379.06\", \"raw_truth\": \"Tax 379.06\", \"raw_prediction\": \"Tax 379.06\", \"complete\": true, \"char_edits\": 0, \"chars\": 10, \"word_edits\": 0, \"words\": 2, \"exact\": true}, {\"key\": \"SF-551781\", \"family\": \"novel-05\", \"truth\": \"Pay this amount 150.57\", \"prediction\": \"Pay this amount 150.57\", \"raw_truth\": \"Pay this amount 150.57\", \"raw_prediction\": \"Pay this amount 150.57\", \"complete\": true, \"char_edits\": 0, \"chars\": 22, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-852562\", \"family\": \"novel-06\", \"truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"prediction\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_truth\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"raw_prediction\": \"Unit 125.32 / 9 times / Carrier adjustment\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-374305\", \"family\": \"novel-07\", \"truth\": \"Issued on 2026-04-09\", \"prediction\": \"Issued on 2026 04 09\", \"raw_truth\": \"Issued on 2026-04-09\", \"raw_prediction\": \"Issued on 2026 04 09\", \"complete\": true, \"char_edits\": 2, \"chars\": 20, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"SF-797533\", \"family\": \"novel-00\", \"truth\": \"Document date 2026-06-15\", \"prediction\": \"Document date 2020-06-15\", \"raw_truth\": \"Document date 2026-06-15\", \"raw_prediction\": \"Document date 2020-06-15\", \"complete\": true, \"char_edits\": 1, \"chars\": 24, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"SF-840609\", \"family\": \"novel-01\", \"truth\": \"Net charges 1,092.80 / Tax 142.06\", \"prediction\": \"Net charges 1,092.80 / Tax 142.00\", \"raw_truth\": \"Net charges 1,092.80 / Tax 142.06\", \"raw_prediction\": \"Net charges 1,092.80 / Tax 142.00\", \"complete\": true, \"char_edits\": 1, \"chars\": 33, \"word_edits\": 1, \"words\": 6, \"exact\": false}, {\"key\": \"SF-427614\", \"family\": \"novel-02\", \"truth\": \"Amount requested 561,38\", \"prediction\": \"Amount requested 561,38\", \"raw_truth\": \"Amount requested 561,38\", \"raw_prediction\": \"Amount requested 561,38\", \"complete\": true, \"char_edits\": 0, \"chars\": 23, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-828365\", \"family\": \"novel-03\", \"truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_truth\": \"Carrier adjustment: 246,45 each for 2 units\", \"raw_prediction\": \"Carrier adjustment: 246,45 each for 2 units\", \"complete\": true, \"char_edits\": 0, \"chars\": 43, \"word_edits\": 0, \"words\": 7, \"exact\": true}, {\"key\": \"SF-416814\", \"family\": \"novel-04\", \"truth\": \"Sold by Sample Supplier 8608\", \"prediction\": \"Sold by Sample Supplier 8608\", \"raw_truth\": \"Sold by Sample Supplier 8608\", \"raw_prediction\": \"Sold by Sample Supplier 8608\", \"complete\": true, \"char_edits\": 0, \"chars\": 28, \"word_edits\": 0, \"words\": 5, \"exact\": true}, {\"key\": \"SF-566082\", \"family\": \"novel-05\", \"truth\": \"3 x Cooling filter @ 227.83 per unit\", \"prediction\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_truth\": \"3 x Cooling filter @ 227.83 per unit\", \"raw_prediction\": \"3 x Cooling filter @ 227.83 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 36, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-704155\", \"family\": \"novel-06\", \"truth\": \"Amount requested 3,051.50\", \"prediction\": \"Amount requested 3,051.50\", \"raw_truth\": \"Amount requested 3,051.50\", \"raw_prediction\": \"Amount requested 3,051.50\", \"complete\": true, \"char_edits\": 0, \"chars\": 25, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-821023\", \"family\": \"novel-07\", \"truth\": \"Invoice denomination EUR\", \"prediction\": \"Invoice denomination EUR\", \"raw_truth\": \"Invoice denomination EUR\", \"raw_prediction\": \"Invoice denomination EUR\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-809721\", \"family\": \"novel-00\", \"truth\": \"Invoice currency USD\", \"prediction\": \"Invoice currency USD\", \"raw_truth\": \"Invoice currency USD\", \"raw_prediction\": \"Invoice currency USD\", \"complete\": true, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-147721\", \"family\": \"novel-01\", \"truth\": \"8 x Door seal @ 196.62 per unit\", \"prediction\": \"8 x Door seal @ 196.62 per unit\", \"raw_truth\": \"8 x Door seal @ 196.62 per unit\", \"raw_prediction\": \"8 x Door seal @ 196.62 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 31, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-591204\", \"family\": \"novel-02\", \"truth\": \"Sample Supplier 4464\", \"prediction\": \"Sample Supplier 4464\", \"raw_truth\": \"Sample Supplier 4464\", \"raw_prediction\": \"Sample Supplier 4464\", \"complete\": true, \"char_edits\": 0, \"chars\": 20, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-344359\", \"family\": \"novel-03\", \"truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"prediction\": \"Pre-tax 680.21 / Tax assessment 88.43 / Final bill 768.64\", \"raw_truth\": \"Pre-tax 680,21 / Tax assessment 88,43 / Final bill 768,64\", \"raw_prediction\": \"Pre-tax 680.21 / Tax assessment 88.43 / Final bill 768.64\", \"complete\": true, \"char_edits\": 3, \"chars\": 57, \"word_edits\": 3, \"words\": 10, \"exact\": false}, {\"key\": \"SF-750969\", \"family\": \"novel-04\", \"truth\": \"Billing details / SF-750969\", \"prediction\": \"Billing details / SF-750969\", \"raw_truth\": \"Billing details / SF-750969\", \"raw_prediction\": \"Billing details / SF-750969\", \"complete\": true, \"char_edits\": 0, \"chars\": 27, \"word_edits\": 0, \"words\": 4, \"exact\": true}, {\"key\": \"SF-816742\", \"family\": \"novel-05\", \"truth\": \"5 x Mounting plate @ 36.61 per unit\", \"prediction\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_truth\": \"5 x Mounting plate @ 36.61 per unit\", \"raw_prediction\": \"5 x Mounting plate @ 36.61 per unit\", \"complete\": true, \"char_edits\": 0, \"chars\": 35, \"word_edits\": 0, \"words\": 8, \"exact\": true}, {\"key\": \"SF-120100\", \"family\": \"novel-06\", \"truth\": \"Fee subtotal 1,693.05\", \"prediction\": \"Fee subtotal 1,693.05\", \"raw_truth\": \"Fee subtotal 1,693.05\", \"raw_prediction\": \"Fee subtotal 1,693.05\", \"complete\": true, \"char_edits\": 0, \"chars\": 21, \"word_edits\": 0, \"words\": 3, \"exact\": true}, {\"key\": \"SF-251393\", \"family\": \"novel-07\", \"truth\": \"Sample Supplier 8417 / statement SF-251393\", \"prediction\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_truth\": \"Sample Supplier 8417 / statement SF-251393\", \"raw_prediction\": \"Sample Supplier 8417 / statement SF-251393\", \"complete\": true, \"char_edits\": 0, \"chars\": 42, \"word_edits\": 0, \"words\": 6, \"exact\": true}]}, \"cord_lines\": {\"count\": 20, \"exact\": 0.0, \"cer\": 3.533333333333333, \"wer\": 3.7037037037037037, \"rows\": [{\"key\": \"cord-0\", \"family\": \"cord-0\", \"truth\": \"-TICKET CP\", \"prediction\": \"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"\", \"raw_truth\": \"-TICKET CP\", \"raw_prediction\": \"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"The line in the image is: \\\"\", \"complete\": false, \"char_edits\": 213, \"chars\": 10, \"word_edits\": 49, \"words\": 2, \"exact\": false}, {\"key\": \"cord-1\", \"family\": \"cord-1\", \"truth\": \"J.STB PROMO\", \"prediction\": \"J.STD PROMO\", \"raw_truth\": \"J.STB PROMO\", \"raw_prediction\": \"J.STD PROMO\", \"complete\": true, \"char_edits\": 1, \"chars\": 11, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-2\", \"family\": \"cord-2\", \"truth\": \"JASMINE MT ( L )\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"JASMINE MT ( L )\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 67, \"chars\": 16, \"word_edits\": 12, \"words\": 5, \"exact\": false}, {\"key\": \"cord-3\", \"family\": \"cord-3\", \"truth\": \"DONAT GULA\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"DONAT GULA\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 69, \"chars\": 10, \"word_edits\": 12, \"words\": 2, \"exact\": false}, {\"key\": \"cord-4\", \"family\": \"cord-4\", \"truth\": \"ICE BLACKCOFFE\", \"prediction\": \"The line in the image is: \\\"C\\\"\", \"raw_truth\": \"ICE BLACKCOFFE\", \"raw_prediction\": \"The line in the image is: \\\"C\\\"\", \"complete\": true, \"char_edits\": 28, \"chars\": 14, \"word_edits\": 7, \"words\": 2, \"exact\": false}, {\"key\": \"cord-5\", \"family\": \"cord-5\", \"truth\": \"TRAD KY TOAST CARTE\", \"prediction\": \"Trad Ky Toast Carte\", \"raw_truth\": \"TRAD KY TOAST CARTE\", \"raw_prediction\": \"Trad Ky Toast Carte\", \"complete\": true, \"char_edits\": 12, \"chars\": 19, \"word_edits\": 4, \"words\": 4, \"exact\": false}, {\"key\": \"cord-6\", \"family\": \"cord-6\", \"truth\": \"EGG TART\", \"prediction\": \"Egg Tart\", \"raw_truth\": \"EGG TART\", \"raw_prediction\": \"Egg Tart\", \"complete\": true, \"char_edits\": 5, \"chars\": 8, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-7\", \"family\": \"cord-7\", \"truth\": \"Kupon 15\", \"prediction\": \"Red and yellow.\", \"raw_truth\": \"Kupon 15\", \"raw_prediction\": \"Red and yellow.\", \"complete\": true, \"char_edits\": 13, \"chars\": 8, \"word_edits\": 3, \"words\": 2, \"exact\": false}, {\"key\": \"cord-8\", \"family\": \"cord-8\", \"truth\": \"[REG] BLACK SAKURA\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"[REG] BLACK SAKURA\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 82, \"chars\": 18, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"cord-9\", \"family\": \"cord-9\", \"truth\": \"Sub Total 36000\", \"prediction\": \"(10,10),(990,990)\", \"raw_truth\": \"Sub Total 36000\", \"raw_prediction\": \"(10,10),(990,990)\", \"complete\": true, \"char_edits\": 16, \"chars\": 15, \"word_edits\": 3, \"words\": 3, \"exact\": false}, {\"key\": \"cord-10\", \"family\": \"cord-10\", \"truth\": \"1 x\", \"prediction\": \"1\", \"raw_truth\": \"1 x\", \"raw_prediction\": \"1\", \"complete\": true, \"char_edits\": 2, \"chars\": 3, \"word_edits\": 1, \"words\": 2, \"exact\": false}, {\"key\": \"cord-11\", \"family\": \"cord-11\", \"truth\": \"BANABERRY FRESH CREAM CAK\", \"prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"raw_truth\": \"BANABERRY FRESH CREAM CAK\", \"raw_prediction\": \"Transcribe the single line in this image exactly. Output the line only.\", \"complete\": true, \"char_edits\": 68, \"chars\": 25, \"word_edits\": 12, \"words\": 4, \"exact\": false}, {\"key\": \"cord-12\", \"family\": \"cord-12\", \"truth\": \"BLUS WANITA\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"BLUS WANITA\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 82, \"chars\": 11, \"word_edits\": 15, \"words\": 2, \"exact\": false}, {\"key\": \"cord-13\", \"family\": \"cord-13\", \"truth\": \"BASO KUAH\", \"prediction\": \"Blue\", \"raw_truth\": \"BASO KUAH\", \"raw_prediction\": \"Blue\", \"complete\": true, \"char_edits\": 8, \"chars\": 9, \"word_edits\": 2, \"words\": 2, \"exact\": false}, {\"key\": \"cord-14\", \"family\": \"cord-14\", \"truth\": \"RedVelvet Cheese Slc\", \"prediction\": \"RedVelvet Cheese 61c\", \"raw_truth\": \"RedVelvet Cheese Slc\", \"raw_prediction\": \"RedVelvet Cheese 61c\", \"complete\": true, \"char_edits\": 2, \"chars\": 20, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-15\", \"family\": \"cord-15\", \"truth\": \"Lemon Tea (L)\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Lemon Tea (L)\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 77, \"chars\": 13, \"word_edits\": 15, \"words\": 3, \"exact\": false}, {\"key\": \"cord-16\", \"family\": \"cord-16\", \"truth\": \"[LG] BLACK SAKURA\", \"prediction\": \"The single line in the image is: \\\"The line is a single line.\\\"\", \"raw_truth\": \"[LG] BLACK SAKURA\", \"raw_prediction\": \"The single line in the image is: \\\"The line is a single line.\\\"\", \"complete\": true, \"char_edits\": 59, \"chars\": 17, \"word_edits\": 13, \"words\": 3, \"exact\": false}, {\"key\": \"cord-17\", \"family\": \"cord-17\", \"truth\": \"Goblin's Mace\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Goblin's Mace\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 72, \"chars\": 13, \"word_edits\": 16, \"words\": 2, \"exact\": false}, {\"key\": \"cord-18\", \"family\": \"cord-18\", \"truth\": \"Sub Tofal 156000\", \"prediction\": \"Sub Total 156000\", \"raw_truth\": \"Sub Tofal 156000\", \"raw_prediction\": \"Sub Total 156000\", \"complete\": true, \"char_edits\": 1, \"chars\": 16, \"word_edits\": 1, \"words\": 3, \"exact\": false}, {\"key\": \"cord-19\", \"family\": \"cord-19\", \"truth\": \"AMBUSH DBL CHS\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"AMBUSH DBL CHS\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 77, \"chars\": 14, \"word_edits\": 16, \"words\": 3, \"exact\": false}]}}}, \"training\": {\"clean_adapter\": {\"updates\": 24, \"examples_seen\": 48, \"seconds\": 23.944732119000037, \"peak_gib\": 2.0639162063598633, \"loss\": [4.809436321258545, 4.961785793304443, 3.602774143218994, 4.683758020401001, 3.2789710760116577, 4.254621505737305, 4.789899706840515, 3.4560837745666504, 4.453832149505615, 3.208020567893982, 3.619239330291748, 3.9693360328674316, 5.0677348375320435, 4.065807580947876, 3.269747734069824, 3.9979180097579956, 4.015152335166931, 3.6988141536712646, 3.65874445438385, 4.5474841594696045, 3.965038537979126, 3.227345585823059, 4.1493159532547, 4.40687358379364]}, \"varied_adapter\": {\"updates\": 24, \"examples_seen\": 48, \"seconds\": 26.359946628000216, \"peak_gib\": 2.0639162063598633, \"loss\": [0.2122560441493988, 0.14073143899440765, 0.1640661172568798, 0.1179085522890091, 0.03792856074869633, 0.25799010694026947, 0.44529305398464203, 0.03664248436689377, 0.016633850056678057, 0.1485276147723198, 0.04925697576254606, 0.04576826374977827, 0.15565862506628036, 0.03323929011821747, 0.1869005523622036, 0.11780107393860817, 0.04763856902718544, 0.034381259232759476, 0.051603562431409955, 0.022962765768170357, 0.1712846178561449, 0.10122768371365964, 0.10789921041578054, 0.06970579363405704]}}, \"paired_changes\": {\"clean_novel\": {\"families\": 8, \"results\": {\"cer\": {\"delta_pp\": -31.573498964803303, \"interval_pp\": [-52.96127562642369, -11.196911196911197]}, \"wer\": {\"delta_pp\": -72.22222222222223, \"interval_pp\": [-102.32558139534883, -39.88095238095238]}}}, \"degraded_novel\": {\"families\": 8, \"results\": {\"cer\": {\"delta_pp\": -22.56728778467909, \"interval_pp\": [-34.343434343434346, -12.903225806451612]}, \"wer\": {\"delta_pp\": -22.839506172839506, \"interval_pp\": [-34.97267759562842, -13.125]}}}, \"cord_lines\": {\"families\": 20, \"results\": {\"cer\": {\"delta_pp\": -67.03703703703701, \"interval_pp\": [-148.94366197183098, -12.794612794612794]}, \"wer\": {\"delta_pp\": -79.62962962962963, \"interval_pp\": [-161.11111111111111, -20.0]}}}}, \"profile\": {\"updates\": 1, \"examples_seen\": 2, \"seconds\": 3.922286530999827, \"peak_gib\": 2.0678606033325195, \"loss\": [2.921293020248413], \"peak_reserved_gib\": 3.248046875, \"longest_prompt_and_response_tokens\": 99, \"key\": \"SF-540371\"}, \"cord_revision\": \"7f0115a4b758a71d6473b8d085751692da2fef98\", \"tesseract_version\": \"tesseract 5.3.4\", \"tesseract_languages\": \"ind+eng\", \"tesseract_psm\": 7, \"max_new_tokens\": 64, \"opening\": {\"tesseract\": {\"clean_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}, \"degraded_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": null, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}}, \"frozen\": {\"clean_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"(13,13),(987,987)\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"(13,13),(987,987)\", \"complete\": true, \"char_edits\": 23, \"chars\": 24, \"word_edits\": 3, \"words\": 3, \"exact\": false}, \"degraded_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}}, \"clean_adapter\": {\"clean_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"The single line in the image is: \\\"The quick brown fox jumps over the lazy dog.\\\"\", \"complete\": true, \"char_edits\": 71, \"chars\": 24, \"word_edits\": 16, \"words\": 3, \"exact\": false}, \"degraded_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}}, \"varied_adapter\": {\"clean_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"The single line in the image is: \\\"Transcribe the single line in this image exactly.\\\"\", \"complete\": true, \"char_edits\": 74, \"chars\": 24, \"word_edits\": 15, \"words\": 3, \"exact\": false}, \"degraded_novel\": {\"key\": \"SF-177277\", \"family\": \"novel-00\", \"truth\": \"Balance payable 1,122.29\", \"prediction\": \"Balance payable 1,122.29\", \"raw_truth\": \"Balance payable 1,122.29\", \"raw_prediction\": \"Balance payable 1,122.29\", \"complete\": true, \"char_edits\": 0, \"chars\": 24, \"word_edits\": 0, \"words\": 3, \"exact\": true}}}, \"opening_mask\": {\"image_tokens\": 28, \"masked_prefix_tokens\": 64, \"first_supervised_token\": \"Balance\"}, \"transfer_example_key\": \"cord-0\", \"measurement_packages\": {\"jiwer\": \"4.0.0\", \"accelerate\": \"1.6.0\"}}\n"
     ]
    }
   ],
   "source": [
    "intervals = paired_error_changes(scores[\"clean_adapter\"], scores[\"varied_adapter\"])\n",
    "opening_rows = {\n",
    "    name: {split: next(row for row in result[\"rows\"] if row[\"key\"] == OPENING_KEY)\n",
    "           for split, result in by_slice.items() if split != \"cord_lines\"}\n",
    "    for name, by_slice in scores.items()\n",
    "}\n",
    "features, labels = sft_feature(processor, opening[0])\n",
    "mask = labels[0] != -100\n",
    "tokeniser = processor.tokenizer\n",
    "visual_tokens = tokeniser.convert_tokens_to_ids(\"<|image_pad|>\")\n",
    "mask_evidence = {\n",
    "    \"image_tokens\": int((features[\"input_ids\"][0] == visual_tokens).sum()),\n",
    "    \"masked_prefix_tokens\": int((~mask).sum()),\n",
    "    \"first_supervised_token\": tokeniser.decode(labels[0][mask][:1]),\n",
    "}\n",
    "print(json.dumps(opening_rows, indent=2))\n",
    "print(\"Opening crop mask:\", json.dumps(mask_evidence))\n",
    "write_results(str(RESULTS / \"07-ocr-results.json\"), {\n",
    "    \"scores\": scores, \"training\": runs, \"paired_changes\": intervals, \"profile\": profile,\n",
    "    \"cord_revision\": CORD_REV, \"tesseract_version\": ocr_version, \"tesseract_languages\": \"ind+eng\",\n",
    "    \"tesseract_psm\": 7, \"max_new_tokens\": 64, \"opening\": opening_rows,\n",
    "    \"opening_mask\": mask_evidence, \"transfer_example_key\": external[0].key,\n",
    "    \"measurement_packages\": {p: version(p) for p in (\"jiwer\", \"accelerate\")},\n",
    "})"
   ]
  }
 ],
 "metadata": {
  "accelerator": "GPU",
  "colab": {
   "provenance": []
  },
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.16"
  },
  "widgets": {
   "application/vnd.jupyter.widget-state+json": {
    "state": {
     "0919e3082bf24570a7d22badb62a8391": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_5cb4090b6a1c40e4a56541c1303a552e",
       "placeholder": "​",
       "style": "IPY_MODEL_b14c9def0b4f4844a6b0769e7a8b4878",
       "value": "Loading checkpoint shards: 100%"
      }
     },
     "0bdb871ab3884c709b9576e5291d7e39": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "1162c94a53f34643b8f0526d4c6f85a0": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "FloatProgressModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "FloatProgressModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "ProgressView",
       "bar_style": "success",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_6eb74da4a45f46a0a279e913fb26f4fb",
       "max": 2.0,
       "min": 0.0,
       "orientation": "horizontal",
       "style": "IPY_MODEL_faefccfd8ba64a728cdb1d39fde8d407",
       "value": 2.0
      }
     },
     "17033601a8a143848a8d59305c17c8cf": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_275d2c8cadd94409bfd079704f7f1b09",
       "placeholder": "​",
       "style": "IPY_MODEL_443c5265626346c583a0026e7f70f504",
       "value": "Loading checkpoint shards: 100%"
      }
     },
     "275d2c8cadd94409bfd079704f7f1b09": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "2b64b53848a546929b345ef3752f98e6": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "2f28551112cb4d80afc7e05b7b3d101d": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_446a065442be4249b20bc44460cda7f9",
       "placeholder": "​",
       "style": "IPY_MODEL_2b64b53848a546929b345ef3752f98e6",
       "value": " 2/2 [00:03&lt;00:00,  1.62s/it]"
      }
     },
     "32cb0fcc8af9405d90d7bfcc8e17c37d": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HBoxModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HBoxModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HBoxView",
       "box_style": "",
       "children": [
        "IPY_MODEL_17033601a8a143848a8d59305c17c8cf",
        "IPY_MODEL_879248a310c04df78ae26360f4c973c3",
        "IPY_MODEL_8f8a969358a248de98523a9e620235bd"
       ],
       "layout": "IPY_MODEL_0bdb871ab3884c709b9576e5291d7e39"
      }
     },
     "3c8c697827914131a277dc24d6681073": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "443c5265626346c583a0026e7f70f504": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "446a065442be4249b20bc44460cda7f9": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "4fb8845a9e7349f089a4a1c1b3852e33": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "51830c00253d418b9a20dcd12225ceb4": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "5580e40e79064ff18d216e69adb89022": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "56e627461731428e899e8eb38503a510": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_5580e40e79064ff18d216e69adb89022",
       "placeholder": "​",
       "style": "IPY_MODEL_51830c00253d418b9a20dcd12225ceb4",
       "value": "Loading checkpoint shards: 100%"
      }
     },
     "57c09b30d74b49bf8131b1fc8667e0a3": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "5cb4090b6a1c40e4a56541c1303a552e": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "6e9d4fd33a474ebfb6f1af7b122796ea": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "ProgressStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "ProgressStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "bar_color": null,
       "description_width": ""
      }
     },
     "6eb74da4a45f46a0a279e913fb26f4fb": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "74c97b1ebb954fce8043541c1e29e3ce": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HBoxModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HBoxModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HBoxView",
       "box_style": "",
       "children": [
        "IPY_MODEL_56e627461731428e899e8eb38503a510",
        "IPY_MODEL_1162c94a53f34643b8f0526d4c6f85a0",
        "IPY_MODEL_2f28551112cb4d80afc7e05b7b3d101d"
       ],
       "layout": "IPY_MODEL_fdf2a7546b544977a4a667c8025aaf4a"
      }
     },
     "75a508c4421a449b82aa5bf58fb15869": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "77fe940612794e80a3f5debda473679e": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "7a6476696cdf416184c908eba69c9666": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "ProgressStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "ProgressStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "bar_color": null,
       "description_width": ""
      }
     },
     "879248a310c04df78ae26360f4c973c3": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "FloatProgressModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "FloatProgressModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "ProgressView",
       "bar_style": "success",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_9ecb5c4edd234734add409afb82f0cc0",
       "max": 2.0,
       "min": 0.0,
       "orientation": "horizontal",
       "style": "IPY_MODEL_6e9d4fd33a474ebfb6f1af7b122796ea",
       "value": 2.0
      }
     },
     "8f8a969358a248de98523a9e620235bd": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_9724b2206f3f4f9c8bce3c9e5f8d00da",
       "placeholder": "​",
       "style": "IPY_MODEL_4fb8845a9e7349f089a4a1c1b3852e33",
       "value": " 2/2 [00:06&lt;00:00,  2.81s/it]"
      }
     },
     "926e2b31efcf47709191676132c31604": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HBoxModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HBoxModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HBoxView",
       "box_style": "",
       "children": [
        "IPY_MODEL_0919e3082bf24570a7d22badb62a8391",
        "IPY_MODEL_bbc152700896478aa61ee660e8cac092",
        "IPY_MODEL_f0327d2f9760427a8660d6d6aa415ad5"
       ],
       "layout": "IPY_MODEL_77fe940612794e80a3f5debda473679e"
      }
     },
     "9724b2206f3f4f9c8bce3c9e5f8d00da": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "983dcc72866242fa9ba7b39f8ec63a4f": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "98936764ab054ae393ea5b458e1da0fe": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_9e3ed05968744789bf3005eea660d03a",
       "placeholder": "​",
       "style": "IPY_MODEL_9acaf7f0925245669dc6aa0bdf09d820",
       "value": "Loading checkpoint shards: 100%"
      }
     },
     "9acaf7f0925245669dc6aa0bdf09d820": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "9e3ed05968744789bf3005eea660d03a": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "9ecb5c4edd234734add409afb82f0cc0": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "a21b11a7ad274a86a41e2626d0b862fc": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "FloatProgressModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "FloatProgressModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "ProgressView",
       "bar_style": "success",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_75a508c4421a449b82aa5bf58fb15869",
       "max": 2.0,
       "min": 0.0,
       "orientation": "horizontal",
       "style": "IPY_MODEL_e4f1eecb2ef4404dad5c393b233508fb",
       "value": 2.0
      }
     },
     "b14c9def0b4f4844a6b0769e7a8b4878": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "b8439b48ab834d8b9bb200f873bd157f": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_e547a62daae94ee3a5e98ef7fa26c308",
       "placeholder": "​",
       "style": "IPY_MODEL_3c8c697827914131a277dc24d6681073",
       "value": " 2/2 [00:03&lt;00:00,  1.62s/it]"
      }
     },
     "bbc152700896478aa61ee660e8cac092": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "FloatProgressModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "FloatProgressModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "ProgressView",
       "bar_style": "success",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_983dcc72866242fa9ba7b39f8ec63a4f",
       "max": 2.0,
       "min": 0.0,
       "orientation": "horizontal",
       "style": "IPY_MODEL_7a6476696cdf416184c908eba69c9666",
       "value": 2.0
      }
     },
     "d1c56b5f3fda4ee7af7ad664a1c6a6e7": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "DescriptionStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "DescriptionStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "description_width": ""
      }
     },
     "dd1c83e833c34695a4d162dada1d3f52": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "e4f1eecb2ef4404dad5c393b233508fb": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "ProgressStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "ProgressStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "bar_color": null,
       "description_width": ""
      }
     },
     "e547a62daae94ee3a5e98ef7fa26c308": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     },
     "e76a9d27bb46462ab64385bb5c5e73b0": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HBoxModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HBoxModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HBoxView",
       "box_style": "",
       "children": [
        "IPY_MODEL_98936764ab054ae393ea5b458e1da0fe",
        "IPY_MODEL_a21b11a7ad274a86a41e2626d0b862fc",
        "IPY_MODEL_b8439b48ab834d8b9bb200f873bd157f"
       ],
       "layout": "IPY_MODEL_dd1c83e833c34695a4d162dada1d3f52"
      }
     },
     "f0327d2f9760427a8660d6d6aa415ad5": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "HTMLModel",
      "state": {
       "_dom_classes": [],
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "HTMLModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/controls",
       "_view_module_version": "1.5.0",
       "_view_name": "HTMLView",
       "description": "",
       "description_tooltip": null,
       "layout": "IPY_MODEL_57c09b30d74b49bf8131b1fc8667e0a3",
       "placeholder": "​",
       "style": "IPY_MODEL_d1c56b5f3fda4ee7af7ad664a1c6a6e7",
       "value": " 2/2 [00:08&lt;00:00,  3.74s/it]"
      }
     },
     "faefccfd8ba64a728cdb1d39fde8d407": {
      "model_module": "@jupyter-widgets/controls",
      "model_module_version": "1.5.0",
      "model_name": "ProgressStyleModel",
      "state": {
       "_model_module": "@jupyter-widgets/controls",
       "_model_module_version": "1.5.0",
       "_model_name": "ProgressStyleModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "StyleView",
       "bar_color": null,
       "description_width": ""
      }
     },
     "fdf2a7546b544977a4a667c8025aaf4a": {
      "model_module": "@jupyter-widgets/base",
      "model_module_version": "1.2.0",
      "model_name": "LayoutModel",
      "state": {
       "_model_module": "@jupyter-widgets/base",
       "_model_module_version": "1.2.0",
       "_model_name": "LayoutModel",
       "_view_count": null,
       "_view_module": "@jupyter-widgets/base",
       "_view_module_version": "1.2.0",
       "_view_name": "LayoutView",
       "align_content": null,
       "align_items": null,
       "align_self": null,
       "border": null,
       "bottom": null,
       "display": null,
       "flex": null,
       "flex_flow": null,
       "grid_area": null,
       "grid_auto_columns": null,
       "grid_auto_flow": null,
       "grid_auto_rows": null,
       "grid_column": null,
       "grid_gap": null,
       "grid_row": null,
       "grid_template_areas": null,
       "grid_template_columns": null,
       "grid_template_rows": null,
       "height": null,
       "justify_content": null,
       "justify_items": null,
       "left": null,
       "margin": null,
       "max_height": null,
       "max_width": null,
       "min_height": null,
       "min_width": null,
       "object_fit": null,
       "object_position": null,
       "order": null,
       "overflow": null,
       "overflow_x": null,
       "overflow_y": null,
       "padding": null,
       "right": null,
       "top": null,
       "visibility": null,
       "width": null
      }
     }
    },
    "version_major": 2,
    "version_minor": 0
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
