{{ gt }}
{{ ocr }} {% if metrics %}
Metrics
CER: {{ cer|round(4) }}
WER: {{ wer|round(4) }}
{% endif %}
Character differences
{{ char_diff_report }}
Word differences
{{ word_diff_report }} {%- if differences %} {% set sections = [{'title': 'Found differences (character)', 'data': diff_c}, {'title': 'Found differences (word)', 'data': diff_w}] %}
{% for section in sections %}
{{ section['title'] }}
GT
OCR
Occurrences
{% for gt_ocr, occurrences in section['data'].items() %}
{{ gt_ocr.split("::")[0] }}
{{ gt_ocr.split("::")[1] }}
{{ occurrences }}
{% endfor %}
{% endfor %}
{%- endif %}