Two numbers per page: the standard CER, comparable to other HTR benchmarks, and oCER, which also scores the marks and does not punish a correctly read block in another place.
The metric code follows with the code release.
Both numbers compare the read with the ground truth after Unicode NFC, with runs of white space collapsed and blank lines dropped; a line break counts as one character. One page is one scoring unit; the figures of a set are pooled — the sum of the errors over the sum of the ground-truth characters, so long pages weigh more than short ones.
Levenshtein distance divided by the number of ground-truth characters. The marks for struck and underlined text are removed and the text inside them counts as ordinary text; super- and subscripts are compared as written.
Nr! (xxx) = Nr!(xxx)); a space between letters or digits
counts (ichgebe, han deln).▨ in the ground truth costs at most one character, whatever the read writes
there.The share of ground-truth words read exactly, aligned in reading order — stricter than oCER, closer to what an index or a search needs. (A near-miss class — the same word with at most a third of its letters wrong and the first letter right — is reported separately, never as exact.)
A read that loops (a repeated line or block), or that has more oCER errors than the page has ground-truth characters, is a runaway. Runaways are counted and reported, and included in the pooled figures; in evaluation every read is capped at twice the ground truth's token count.
This model writes the page in page order and marks what was struck or inserted. Plain CER against an edition's reading text punishes both: a margin note in the "wrong" place can cost up to twice its length, and a correctly marked strike is invisible. oCER keeps the comparison fair to the format and makes the marks count; CER stays the number to compare with other systems. On the 610 validation pages the model reads at 4.74 % CER and 3.85 % oCER.