01

Turning pages into text

Optical character recognition, or OCR, is technology that converts images of printed text into machine-readable text. Libraries use OCR to make old newspapers searchable, so researchers can find articles by keyword. Millions of historical newspaper pages have been digitised this way.

02

Complex layouts

Newspaper pages are complicated. They have many columns, headlines of different sizes, photographs, captions and advertisements. Stories can continue from one column to the next, or jump to another page. To produce readable text, OCR software must work out the layout as well as recognise the letters.

03

Reading across columns

A simple approach reads each line from left to right across the whole page. On a multi-column page, this would join the first line of one column with the first line of the next, producing sentences that mix unrelated stories. Every word might be spelled correctly, but the text would make no sense.

04

Two kinds of error

OCR can fail in two different ways. Recognition errors are mistakes in individual characters or words, such as reading cl as d. Layout errors put correctly recognised words in the wrong order or the wrong story. A good evaluation measures both, because they affect users differently.

05

What word scores hide

A common measure of OCR quality is the word error rate: the proportion of words recognised incorrectly. A page with excellent word accuracy can still have a disastrous reading order. Word counts alone would not show the problem, because all the words are present and spelled correctly.

06

Scoring the layout

To measure layout errors, evaluators mark the correct reading sequence on test pages, identifying each region, such as headline, column or caption, and the order in which they should be read. The software's output order is then compared with this sequence, separately from the spelling of words.

07

Reading in order

A simple but effective check is to read the OCR output from start to finish. Mixed-up columns quickly become obvious to a human reader, even when statistics look good. Sampling pages and reading them in order helps catch errors that automated scores miss.

08

Old newspapers

Historical newspapers present extra challenges: faded ink, damaged paper, unusual fonts and very narrow columns. Pages may be photographed from microfilm, with uneven lighting. Testing OCR on a range of old and new pages shows how well it copes with these conditions.

09

Why it matters

Researchers, family historians and journalists search digitised newspapers for names, places and events. If text is in the wrong order, a search might find the right words but in a confusing context, or miss phrases split across columns. Good layout analysis makes archives more useful.

10

Testing responsibly

The NIST AI Risk Management Framework encourages developers to use measures that reflect how a system will actually be used. For newspaper OCR, that means measuring reading order as well as word recognition.

11

Headlines and captions

Headlines often span several columns, while captions sit beside pictures and belong to them rather than to the stories around them. Software must place each headline above the right story and keep captions with their photographs. Errors here can attach a headline to the wrong article, changing its apparent meaning. Marking these regions in test pages lets evaluators check them directly.

12

Continued on page

Stories that jump to other pages need linking across pages, a separate challenge.

13

Advertisements

Adverts break up columns and must be kept apart from stories.

14

Ground truth pages

Test pages are transcribed by hand to provide reliable reference text.

15

Try the arithmetic

If a page has 1,000 words and OCR misreads 20, the word error rate is 2 per cent. But if three of the page's eight columns are joined in the wrong order, much of the page may still be unreadable.

16

The idea to take away

OCR can recognise words perfectly yet produce nonsense by jumping across columns. Score page layout and word spelling separately, and read the output in order, to detect errors missed by word counts.

FOLLOW THE EVIDENCE

Sources & further reading

Figures in the example are illustrative. Photograph: original AI-generated illustration (Adobe Firefly), created for this story. Reference organisations do not endorse this website.