---
title: "Correction of OCR Word Segmentation Errors in Articles from the"
description: "How character-level neural translation repairs words split by OCR in the ACL Anthology, and what tests on newer and older articles reveal."
canonical: "https://research.elamur.ai/free/en/papers/nastase-2018-correction-ocr-word-segmentation-errors/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/nastase-2018-correction-ocr-word-segmentation-errors/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Correction of OCR Word Segmentation Errors in Articles from the ACL Collection through Neural Machine Translation Methods

# Correction of OCR Word Segmentation Errors in Articles from the ACL Collection through Neural Machine Translation Methods

Paper · 2018 · Vivi Nastase and Julian Hitschler

**Authors:** [Vivi Nastase](https://md.research.elamur.ai/free/en/authors/vivi-nastase/) and [Julian Hitschler](https://md.research.elamur.ai/free/en/authors/julian-hitschler/) · **Year:** 2018 · **Venue:** Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018) · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[**5** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2805283370) · Cited by **5** papers in our library of more than 163,000 papers whose bibliographies we read · [Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)](https://aclanthology.org/volumes/L18-1/) · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/L18-1113/)
- [PDF](https://aclanthology.org/L18-1113.pdf)
- [DOI 10.63317/2gn4wbpg9mkw](https://doi.org/10.63317/2gn4wbpg9mkw)
- [OpenAlex](https://openalex.org/W2805283370)

Citations: OpenAlex, 2026-10-14.

## Summary

A scanned article can preserve the letters of a word and still make it difficult to find. Optical character recognition, or OCR, turns the image of a printed page into text. In older articles from the ACL Anthology, the authors found that this process frequently inserted spaces inside words. The resulting fragments could enter a keyword list as if they were meaningful terms, or leave part of the intended term behind. [Vivi Nastase](https://md.research.elamur.ai/free/en/authors/vivi-nastase/) and [Julian Hitschler](https://md.research.elamur.ai/free/en/authors/julian-hitschler/) use character-level neural [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) to repair these word boundaries in [English](https://md.research.elamur.ai/free/en/topics/english/) scientific text. The system reads a stream of characters and produces a version with spaces in the places it predicts words should end.

The authors obtain examples from articles published from 2005 onward, whose spacing they take as correct after preprocessing. They erase the spaces from short fragments to make inputs and use the original spacing to make the corresponding targets. This gives them paired examples without requiring someone to transcribe older scans for training. They use 2,000,000 pairs to train Nematus, an encoder–decoder toolkit, and evaluate it on 500,000 test fragments prepared from the newer material. On that test, it reaches word-level precision of 0.955 and recall of 0.950. With a partial allowance for differences in formula spacing, the scores are 0.979 and 0.974, respectively. Test tokens absent from both training and development data are harder to recover, with precision of 0.876 and recall of 0.821.

The authors also apply the procedure to the earlier articles, where they lack a clean transcription against which to score the full output. They instead check keywords that had already been extracted from a sample of 40 papers. Of 38 keywords judged to contain segmentation errors, 35 occur in the raw files and 3 occur in the repaired files. Of 535 keywords judged correctly segmented, 455 occur in the raw files and 453 in the repaired files. A closer reading of the phrases that disappeared shows both why the archive can benefit and where the repair can go wrong. An apparent loss reveals a word that had been split in the original text, while a genuine error joins an article to the adjective after it.

The study gives two views of the repair. The newer articles provide known word boundaries for a large test of reconstruction after deliberate space removal. The older articles show how resegmentation changes text that actually passed through OCR, including the phrases available to downstream processing. Together they support repairing misplaced spaces in this collection. The experiment with the older papers establishes how frequently the previously extracted phrases can still be found, while the word-level precision and recall come from the newer material.

## Deep dive: Correction of OCR Word Segmentation Errors in Articles from the ACL Collection through Neural Machine Translation Methods

How character-level neural translation repairs words split by OCR in the ACL Anthology, and what tests on newer and older articles reveal. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### When an extra space changes what a document says to software

The ACL Anthology contains research that predates routine electronic submission. Digitizing those articles makes their contents available as text, but the process introduces faults that reflect the condition and layout of the scanned pages. An OCR engine can misread a glyph, for example, or infer a space where the printed page has none. When it inserts a blank inside a word, the extracted text contains fragments that software may treat as separate words. A reader who sees the fragments in a sentence can often connect them immediately. A program that relies on spaces to delimit words receives a different representation of the sentence.

This is a problem of [tokenization and segmentation](https://md.research.elamur.ai/free/en/topics/tokenization/). In the setting of the paper, the word boundaries of ordinary English prose are usually written down as spaces. The older documents acquired a boundary problem during conversion. That origin matters for the kind of repair the authors pursue. The letters of a split word may already be available in their proper order, so reconstructing the word can depend on changing where the text is divided. A misread letter poses a separate problem, even if it happens in the same word or on the same scan.

The paper illustrates the distinction with material from [Jonathan Slocum](https://md.research.elamur.ai/free/en/authors/jonathan-slocum/)’s article P81-1001. The raw text has letters separated inside words at several places in the paragraph, including within the word *literature*. The fragments vary in length and can occur close together, so the damage is hard to describe as an occasional missing or extra delimiter between otherwise clean tokens. The example also contains a digit inside a word, along with other unusual characters. The authors use the passage to show the kind of input the archive contains. Their experiment addresses the division into words within such a passage.

The effects become clearer in the output of keyword extraction. The authors inspect existing SAFFRON keywords and find examples such as *Segmentat ion*. Both parts of the intended word survive as part of the keyword, and a reader can usually recognize it. Other phrases are more misleading. *Context fi* leaves an incomplete word, while *Ion theory* presents what looks like a plausible phrase whose leading fragment came from a segmentation error. These illustrate why the effect extends beyond cosmetic spacing. A downstream program can lift a fragment out of its sentence, losing the surrounding text that would have made it easy for a reader to reconstruct the word.

Keyword extraction is the example the authors can inspect directly, but their reason for working on the archive is broader. They describe efforts to turn the collection into a structured resource for studying scientific work, finding related research, and following developments. Earlier analyses had examined citation links, the text around references, research topics and communities, and the extraction of keywords and relations. The paper also situates the collection within shared tasks and workshops concerned with scientific publications and their structure. All these activities begin with some representation of the underlying text. If character recognition alters the units that processing sees, what looks like a downstream analytical error may begin with a space on a scanned page.

That connection explains the choice of evidence later in the paper. Once an incorrectly split word turns into a keyword, its literal occurrence can be checked in the source file. Searching the repaired file for the same phrase then shows whether the old string survived. This is possible even for a historical document with no trustworthy electronic version to use as a complete reference. The keyword files are therefore useful both as examples of visible damage and as a way to examine the practical effects of repairing it.

#### Why use a translation system to restore spaces?

The paper draws on earlier uses of translation architectures for correction. In a translation task, the source sequence is evidence from which the system produces a target sequence. A correction task can be represented in the same way, with a faulty version of a passage on the source side and a corrected version in the same language on the target side. The authors discuss prior work on misspellings, unusual written forms, and grammatical errors as part of this broader family of problems. What changes from task to task is the relationship between the source and the expected target, as well as the kind of data available to show that relationship.

In the paper’s account of [grammatical error correction](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/), earlier approaches had tried generating and ranking candidate sentences, as well as learning to generate a corrected sequence directly. Some systems operated on words, others on characters. The authors point to work on the CoNLL-2014 shared task, where the material consisted of writing by people learning a second language. That work addressed a wider range of changes than space restoration. What transfers to the ACL experiment is the practice of learning a mapping from a degraded sequence to a preferred one. [Grammatical error correction using neural machine translation](https://md.research.elamur.ai/free/en/papers/yuan-2016-grammatical-error-correction-neural-machine/) · [Neural Language Correction with Character-Based Attention](https://md.research.elamur.ai/free/en/papers/xie-2016-neural-language-correction-character-based/)

The authors also draw on earlier sentence correction results in which character-based processing did better than word-based processing and surpassed statistical phrase-based translation on the shared-task material. That comparison belongs to the earlier study. Its relevance here is that a space inside a word makes the input’s apparent words particularly unreliable. A fragment such as *ion* could be an ordinary word elsewhere, yet using it as a complete input word already assumes that a boundary from OCR is correct. Giving the system the underlying characters makes the decision about that boundary part of the task. [Adapting Sequence Methods for Sentence Correction](https://md.research.elamur.ai/free/en/papers/schmaltz-2017-adapting-sequence-models-sentence-correction/)

Work on Chinese word segmentation supplies a related precedent. The paper describes studies that use recurrent neural architectures for segmentation and work that uses both character and word context to choose a segmentation through a search procedure. It also discusses a modular approach using local character windows and pretraining with external resources. Those studies show ways of introducing context into a decision about where words end. In the ACL application, the boundary information can be obtained from newer English text that already contains spaces. The authors can hide that information to make the problem and retain it to check the solution. [Gated Recursive Neural Network for Chinese Word Segmentation](https://md.research.elamur.ai/free/en/papers/chen-2015-gated-recursive-neural-network-chinese/) · [Long Short-Term Memory Neural Networks for Chinese Word Segmentation](https://md.research.elamur.ai/free/en/papers/chen-2015-long-short-term-memory-neural/)

The training task follows from that availability of clean spacing. A typical corrupted scan may contain both trustworthy spaces between words and misleading spaces inside them. Showing the system a stream with every original blank removed makes each position a fresh segmentation decision. It also makes an automatic training procedure possible. Any suitably prepared newer fragment can supply its own answer, because the spaces removed to create the input can be recovered from the original version. The characters give the system clues about probable words, and the newer articles supply examples of where the boundaries actually belong in scientific prose.

### The method, step by step

#### Prepare the articles before making examples

The working collection contains 18,849 articles published between 1965 and 2012. Its files can preserve line breaks from the page, including breaks where a word was hyphenated to fit at the margin. A line break therefore cannot generally be taken as a boundary between independent pieces of text. Leaving every break in place would make layout compete with the character context the system needs for deciding which letters belong together. The authors start by giving the files a more continuous form.

They remove a newline if the line does not end with a period, question mark, or colon. The punctuation rule provides a simple way to retain some breaks while undoing others that may come from typesetting. For hyphenated words, they check whether the corresponding unhyphenated form occurs somewhere in the collection. If it does, they replace the hyphenated form with that variant. The paper describes the output of this preparation as text arranged with a paragraph per line. The procedure identifies useful lines for processing through visible cues and an occurrence check, so its notion of a paragraph comes from those operations.

This initial preprocessing covers the whole collection. Only afterwards do the authors separate the material into B2005, the portion published before 2005, and A2005, which includes 2005 and the later years. The choice of 2005 is a conservative publication cutoff for identifying material produced after electronic submission had become standard. It lets the authors put aside the older material they want to repair while using the later text as a source of examples. The date serves as a practical rule for choosing material whose segmentation can be taken as correct.

The order of these operations affects what the system is asked to learn. Joining lines and resolving hyphenation where the corpus supplies an unhyphenated form already changes the representation of the articles. The target for training is the spacing of the newer text after this preparation. The task learned by the neural system begins with fragments of that prepared text. It need not infer the original page layout or decide from the image whether a hyphen was a typesetting choice.

Preparing the ACL articles and learning to restore spaces The steps in order.

#### Cut the text where there is evidence of a break

Nematus has a default sequence length limit of 100 in the setup used for the experiments. The authors prepare fragments with this limit in mind and work toward a threshold of 50 characters in their splitting procedure. These numbers refer to different parts of the pipeline. The former is a limit on the sequences supplied to the toolkit. The latter governs how the authors divide text into fragments before producing the input and target representations.

The first cuts use punctuation that can mark the end of a sentence or a break within a phrase. The paper’s list includes periods, question marks, exclamation marks, semicolons, colons, hyphens, and parentheses. When a resulting fragment is longer than 50 characters, the next opportunity for a cut is at numbers. The authors split any fragment that still exceeds 50 characters into 50-character sequences. The operations proceed from visible structural cues to a length-based fallback.

The reason for preferring punctuation is that a space can be precisely the thing whose status is in doubt. A cut at a space in an older article might land between the halves of a corrupted word. Making that cut into the boundary of an input sequence would deny the system the chance to see the pieces together. By taking other cues where possible, the preparation makes fewer decisions based on the feature that needs correction. Punctuation and numerals can also carry important structure, and a length-based cut can interrupt a meaningful unit. The priority order is a way to manage these issues while keeping fragments short enough to process.

The later formula example shows why fragment preparation and the definition of a word are related. Scientific text includes punctuation that looks like a general delimiter but belongs inside a mathematical expression. Procedures that work well on a clause of prose can encounter a different distribution of symbols even within the same paragraph. The paper gives a clear account of its splitting priorities and subsequently examines disagreements in formulas. It does not assign individual formula errors to a particular cut or stage of preparation.

#### Give spaces their own output symbol

Once a fragment has been chosen, its two versions serve different purposes. To form the input, the authors remove its spaces and put a blank between consecutive characters. These new blanks are formatting for Nematus, telling the toolkit that each character is a separate input symbol. They do not carry the locations of the original word breaks. The system receives the sequence of letters, punctuation, and other retained characters without the distinction between adjacent letters that used to be separated by a word boundary and those that were already inside the same word.

For the target, the authors replace each original blank with `##`. They put formatting spaces between the resulting symbols while keeping `##` intact as a single marker. The formatting blanks allow Nematus to read the sequence symbol by symbol. The marker gives the system a symbol it can deliberately generate when the recovered text needs an actual blank. This distinction between the two kinds of space makes the same toolkit usable for the corrupted input and the desired output. In each representation, visually separating the symbols helps the toolkit read them, while the special sequence preserves the training answer about where the words end.

The paper’s training examples convey the intended mapping through short pieces of text. In the pair involving *and gerunds*, the underlying source letters correspond to `andgerunds`. Once those letters are presented individually, there is no special indication that the *d* and *g* were on opposite sides of a blank. In the target, `##` is placed between them. Another example joins the letters of *contained compressions* in the input and records the break before *compressions* in the target. These cases are useful because the desired change is legible without technical notation. A boundary is learned as something the output should contain in addition to the letters.

The target also teaches where spaces should be absent. Between the letters of *gerunds*, for instance, the original text contains no blanks, and the target contributes no markers inside the word. The same objective covers keeping such a word whole and separating it from its neighbors. That makes the task more general than finding recognizable fragments and merging them greedily. The system has to build an entire sequence in which each proposed marker affects the units on both sides.

This construction also explains the relationship between training and the original OCR error. Training begins by eliminating all blanks in a prepared fragment. The paper’s examples of real OCR, in contrast, show a mixture of proper word spacing and extra blanks. The synthetic training pair is a reconstruction exercise with known answers. It teaches the system to infer where there should be spaces from the characters that remain. Those inferred boundaries can then supply a new segmentation for text whose current spacing is unreliable. The paper is more explicit about how it constructs the training pairs than about every input and output preparation step used in the archive-wide run.

#### Train an attentional encoder–decoder

The authors use Nematus, the named software for the experiment. Its architecture divides sequence processing into an encoder and a decoder. The encoder reads the source characters and constructs internal representations of the input. The decoder uses this information to generate the target symbols in order. An attention mechanism lets the decoder draw on different encoded parts of the fragment as it generates different parts of the output. That is useful when recovering a boundary depends on recognizing letters around the current position in the wider fragment. [Nematus](https://md.research.elamur.ai/free/en/papers/sennrich-2017-nematus-toolkit-neural-machine-translation/)

Both the encoder and decoder use gated recurrent units, or GRUs. A recurrent unit processes a sequence while carrying an internal state across steps. The gates govern how that state changes as a new symbol is read or produced. In this application, the units give the system a way to work with character sequences whose meaning for segmentation depends on their neighbors. The paper identifies the architecture and settings, then evaluates the resulting predictions. It leaves questions about which particular cues contributed to individual decisions open.

The training objective is cross-entropy, which penalizes the system when it gives low probability to the target symbol that belongs at a step. An error in predicting a `##` marker contributes through the same objective as an error in predicting a character. The authors train with Adam, an optimizer that uses gradients from training examples to update the system’s parameters. The reported learning rate is 0.0001. The embedding layer size is 512, and the hidden layer size is 1000. The embeddings represent the discrete symbols numerically, while the hidden states are the internal representations processed by the recurrent units. The reported dropout for the input embeddings and hidden layers is 0.2. Dropout withholds some activations during training.

The example construction produces 9,310,664 paired sequences. From that pool, the authors select 2,000,000 pairs for training and 500,000 pairs for testing. The training input is the sequence of source characters with the original spacing removed. Its target provides both the characters and the answer about where spaces should go. In the test, Nematus generates its own output from a prepared source and the authors compare the resulting words with those in the expected output. The paper refers to development data when defining which test tokens count as unknown, while giving the explicit selection counts for training and testing.

Although the operation is called translation, there is no change of language. The transformation is learned between representations of the same text. Most of the intended output is present on the input side as characters, and the targets show how those characters are divided into words. Because the system generates the target sequence, however, its task is expressed as predicting that sequence. The paper does not describe a rule that separately enforces character preservation on every prediction. The distinction matters when interpreting a successful-looking reconstruction of one passage and when assessing what the reported word scores cover.

#### Count matching words in the generated and reference sequences

For the formal test, the authors measure precision and recall on words. A predicted word contributes a match when its counterpart can be credited in the expected sequence for that fragment. The paper treats both sequences as ordered lists and describes shortening the lists during matching. This prevents a repeated word in the prediction from being credited several times for the same reference occurrence. The braces in the formulas are thus shorthand for matched occurrences under that procedure. Reading them as a set of distinct word spellings would lose the information that the paper preserves about repetition.

```
Prec = |{w | w ∈ w_gs, w ∈ w_a}| / |w_a|
```

`Prec` means precision. The symbol `w` refers to a word occurrence under comparison. `w_gs` is the gold-standard sequence, meaning the expected list of words, and `w_a` is the automatically produced sequence. Inside the braces, the vertical bar following `w` means “such that,” `∈` means “belongs to,” and the comma joins the two membership conditions. The braces enclose the matches interpreted through the ordered-list procedure. The surrounding vertical bars give their count in the numerator and the number of predicted word occurrences in the denominator. The slash means division and the equals sign identifies that quotient as precision. The subscripts `gs` and `a` distinguish the expected words from the automatic output.

```
Rec = |{w | w ∈ w_gs, w ∈ w_a}| / |w_gs|
```

`Rec` means recall. Here `w` again represents a word occurrence, `w_gs` the expected sequence, and `w_a` the automatic one. In the braces, the vertical bar introduces the conditions on `w`, each `∈` expresses membership, and the comma requires membership on both sides under the matching procedure. The outer vertical bars count the matches and, below the slash, the word occurrences in the expected sequence. The equals sign defines recall as matches divided by the reference count. The subscript `gs` identifies the gold standard and `a` the automatic sequence.

The numerators are the same because a successful match is evidence for both scores. The denominators answer different questions. Precision asks how much of the produced wording matches the reference. Recall asks how much of the reference wording was recovered. An extra boundary can turn a reference word into several predicted fragments, while a missing boundary can turn several reference words into one predicted string. Either decision can change the relative length of the predicted and expected word lists. Reporting both scores therefore gives a clearer account of reconstruction than a single count of successful matches.

The paper reports a micro-average across the test, so the word counts from the fragments contribute to aggregate precision and recall. A fragment with more evaluated words contributes more word occurrences. The test consequently measures word recovery across the material as encountered, with frequent words and longer fragments contributing their observed counts. The paper complements that overall view with a separate evaluation restricted to previously unseen tokens.

### Experiments and results

#### Recover known boundaries in the newer articles

The first evaluation uses the 500,000 A2005 test fragments constructed by removing the original spaces and retaining the corresponding correctly spaced fragments as answers. The test directly checks the kind of operation represented in the training pairs. The system receives characters whose original boundary information was taken away and must recover words in the expected sequence. This setting gives the authors a reference for each fragment and lets them report precision and recall for the recovered words.

On the ordinary scoring rule, precision is 0.955 and recall is 0.950. These are aggregate scores for the newer-article fragments. Their denominators are predicted and expected word occurrences respectively, so they do not represent the proportion of documents fully repaired or the proportion of fragments with no mistakes. The distinction is important in a collection where a passage can be mostly readable after resegmentation while still containing a bad boundary. The experiment quantifies how much word-level agreement the system attains across its test material.

The gold standard is the prepared newer text, with its spacing taken to be correct for the experiment. It plays the role of the reference answer. The authors do not report a competing resegmentation system on those fragments. Consequently, the scores show the level of agreement Nematus achieves on this reconstruction task. The paper’s discussion of competing approaches belongs to its account of earlier research, and the comparison between raw and repaired text belongs to a different experiment on the older articles. Neither serves as a head-to-head baseline on A2005.

#### Examine disagreements around formulas

The authors report that many errors they observed involved spacing in formulas. Their example compares the reference form `F2(3;117)` with an output in which a space appears after the semicolon. Under the reference’s whitespace conventions, the formula string is a single word for scoring. The output divides it, so neither of the resulting pieces reproduces the complete reference token. A small visual difference in notation can therefore register as a disagreement in word recovery.

For a reader, the unusual appearance of the error underscores how the test is defined. The labels come from the spaces in the reference text. The score need not distinguish a space that disrupts a keyword from a space that changes the formatting of a mathematical expression. Both can prevent an exact word match. This gives the raw scores a clear interpretation and also explains why the authors examine an adjusted result. They expect formula spacing to matter less to applications such as keyword or [information extraction](https://md.research.elamur.ai/free/en/topics/information-extraction/), where the principal interest is ordinary prose.

With some of the formula-spacing disagreements discounted, the reported precision becomes 0.979 and recall becomes 0.974. The system producing the predictions is the same. The change concerns which disagreements are counted in assessing the output. The paper reports both versions so the reader can see how the interpretation of formula boundaries affects the score.

Nematus word-level precision on the A2005 test under different scoring rules Precision is higher when some formula-spacing disagreements are discounted.

**The numbers**

| System or setting | word-level precision |
| --- | --- |
| Standard scoring | 0.955 |
| Scoring with partial formula allowance (this paper) | 0.979 |

The adjusted result is helpful when considering how closely the metric corresponds to the archive work that motivated the paper. It remains a word-recovery score for the newer material. The treatment of formulas is described as partial, and the paper gives an illustrative case. It does not report a corresponding keyword extraction score produced by varying formula handling. The relevance to downstream processing is the authors’ explanation for examining the adjustment.

#### Isolate words missing from training and development

The authors expect the older and newer halves of the collection to share substantial vocabulary because both concern research in the same domain. That expectation still leaves open how the system behaves when a desired output word is unfamiliar. Character-based input gives the system access to pieces of an unfamiliar word, but the usefulness of those pieces for recognizing a boundary is an empirical question. The authors address it within the test for which they have known word boundaries.

They restrict the evaluation to test tokens absent from both training and development data. On this subset, precision is 0.876 and recall is 0.821. These numbers are word-level scores on previously unseen tokens from A2005, not measurements on B2005. The comparison with the full test shows that recovering words in this group is more difficult. At the same time, many such occurrences are recovered even though the same token did not occur in the data used for training or development.

The paper observes that formulas account for many of the unfamiliar tokens. A formula can contain a combination of characters that is specific to a particular passage, even in a field where surrounding scientific terms recur. The restricted evaluation can therefore reflect both the difficulty of unfamiliar words and the scoring behavior for unfamiliar notation. It is informative about a challenge the older material may pose, without estimating how common that challenge is in old scans. The paper gives the scores for the restricted group but does not state how many test occurrences make up that group.

#### Look for previously extracted keywords in the older files

For B2005, the authors have the raw files and the resegmented files but lack a reference transcription for a direct word-level test. They do have keywords already produced by SAFFRON from the raw articles. The version of SAFFRON used to produce them is no longer available to the authors for running the same extraction on the repaired texts. Their alternative is to keep the old keyword strings fixed, judge their segmentation, and look for each string in both versions of its article.

The authors randomly select 40 papers published before 2005. An author labels each of the 573 associated keywords for whether its words are correctly segmented. There are 38 judged incorrect and 535 judged correct. The judgment concerns the spacing of the phrase. It does not require that the phrase be a suitable description of the article or that it was extracted from the intended passage. This narrower judgment is what makes it possible to annotate existing phrases even without having clean versions of the complete articles.

Among the 38 keywords marked incorrect, 35 occur in the raw files, reported as 92.1% of the incorrect group. In the repaired files, 3 occur, reported as 7.9% of that same group. The raw occurrence count establishes that most of the strings judged bad do appear in the documents themselves. The repaired count shows that few can still be found in the rewritten files. The chart compares that occurrence count under the two text conditions.

Incorrectly segmented keywords found in the B2005 sample of 40 papers Far fewer of the marked keyword strings occur after resegmentation.

**The numbers**

| System or setting | keyword occurrences by document |
| --- | --- |
| Raw articles | 35 |
| Resegmented articles (this paper) | 3 |

The chart counts annotated keywords whose string is present in the corresponding document. It does not count every repetition of the same string in that document. Its direction is useful because the items have already been judged incorrectly segmented. Finding such a string after resegmentation is evidence that the undesired form persists somewhere in the file. Conversely, its absence is consistent with the system changing the segmentation. Searching for the original string does not by itself establish which new string took its place.

The authors also check what happened to the keywords marked correct. Of 535 correctly segmented keywords, 455 occur in the raw texts, which the paper gives as 85.05% of the correctly segmented group. In the repaired texts, 453 occur, or 84.67% of that same group. These counts bring a second consideration into the evaluation. A method could cause malformed strings to disappear while also damaging many phrases that started out correctly spaced. The similar counts for the correctly segmented group give a check on that possibility within this sample of phrases.

Some existing keywords are missing from the raw files themselves. For the paper A94-1014, the authors give the example *[Computer Science](https://md.research.elamur.ai/free/en/authors/computer-science/) Univ*, which they find in neither file. They suggest it came from processing consecutive affiliation lines during extraction. The paper also points to [lemmatization](https://md.research.elamur.ai/free/en/concepts/lemmatization/), the reduction of a word to its dictionary form, as a likely reason that some correctly segmented keywords do not match strings in either document. This is why the raw files are checked alongside the repaired files. A keyword can be absent as a literal string for reasons that precede the repair.

#### Read the repaired text alongside the counts

Of the correctly segmented keywords, the paper identifies two that appear in the raw text and disappear after resegmentation. The first is *language process* from P84-1101. On its own it looks correctly spaced and was labeled accordingly. In the article, the old text contained *language process ing*. The keyword was therefore drawn from a place where a word had been broken after *process*. When the boundary is fixed, the recorded keyword can disappear because the old match depended on precisely the error the authors wanted to remove.

The other example, from E93-1061, is a genuine repair error. The output joins the indefinite article *a* to the following adjective *rigid* in a phrase that should begin *rigid system-directed*. After the join, the original keyword no longer occurs as a separate phrase. This example exposes a cost that a count of removed bad keywords alone would miss. Inferring all the word boundaries gives the system a chance to repair spurious blanks and a chance to delete a correct one.

The paper also displays the repaired passage from P81-1001. It is easier to read because many of the letters split by blanks are reunited. At the same time, the digit inside *acc3rding* remains, and the passage still contains unusual treatment of some punctuation and other symbols. The side-by-side passages let a reader see the scope of the operation in a way that word counts cannot. The text can become easier to process even when its character recognition and typography still bear traces of the scan.

### What the ablations show

#### What changes when the test conditions change?

The paper reports no training or architecture ablation. Its diagnostic comparisons change the scoring treatment of formula spacing, select a subset of words with a different relationship to the training material, and examine the raw and repaired versions of older articles. These comparisons locate some of the difficulty and some of the practical gains. They do not isolate contributions from attention, recurrent units, fragment preparation, or the choice to process characters.

The formula analysis tests the sensitivity of the word scores to what counts as an error. When a blank within a formula is treated as less consequential for the application, some exact-match disagreements can be set aside and the scores rise. Because the output itself stays fixed, this comparison explains part of the gap between a reader’s impression of a repaired passage and the strict word-level count. A sequence can be largely suitable for extracting prose terms and still disagree with the reference at a boundary inside a formula. The analysis shows that the distinction affects the reported scores under the authors’ adjustment.

The unseen-token test changes the evaluated group while retaining the same correction system. Its lower scores identify vocabulary coverage as one condition under which segmentation remains difficult. Those tokens are not uniformly ordinary words, however. As the authors note, many belong to formulas. The test therefore combines novelty with a change in the kinds of strings being evaluated. It does not tell how often an unfamiliar prose word would be recovered independently of formula material, or how much the result depends on the characters immediately around a particular token.

The two diagnostic comparisons answer different questions about the reference test. The formula analysis asks how the scores respond when the evaluation treats some disagreements differently. The unseen-token analysis asks how the system fares on a group selected by its absence from training and development. A higher result under the former and a lower result under the latter can both occur with exactly the same outputs. Understanding which part of the experiment changed helps keep conclusions about the method separate from conclusions about the makeup and interpretation of its test set.

#### What changes when the archive text changes?

In the sample of older papers, checking identical keywords in raw and repaired files makes the comparison concrete. The paper holds the list of phrases fixed and changes the version of the text in which they are sought. The large drop in the occurrence of incorrectly segmented strings shows that the pipeline removes many of the surface forms that initially made the problem visible. The similar totals for correct strings show that the drop is concentrated in the group that the authors wanted the repair to affect. Inspection of the losses matters because the annotation is at the phrase level and its evidence may change once the surrounding sentence is read.

The authors extend the keyword comparison across years for B2005 articles with available keywords. They begin with a visual observation about the archive. Earlier articles appear to have been scanned from prints of variable quality. More recent articles appear more frequently to have been processed from directly produced PDF files. If the older texts contain more segmentation damage, an existing keyword extracted from one of them may also be more likely to depend on a bad break. Repair would then make a larger share of those existing keyword strings disappear from older files.

The upper part of the paper’s year plot compares the number of old keyword strings found in the repaired articles with the number found in the raw articles. It shows macro and micro averages. The distinction concerns how documents contribute to a yearly estimate. A macro average gives each document-level comparison its own weight as a document. A micro average combines occurrences, so articles that contribute more keywords can exert more influence over the result. The lower part of the plot looks separately at the raw and repaired occurrence rates relative to all the existing keywords associated with each article. This second view includes keywords that already fail to match the raw files.

The authors report an upward trend in the ratio of old keywords found in repaired files to those found in raw files. The pattern means that the repair leaves a larger share of the old keywords locatable in later years than in earlier ones. They interpret it as consistent with better OCR quality in the later material and with more serious spacing damage in older papers. This is a comparison over years of the collection, using keyword survival as its observed quantity. The plots give the reader a way to follow that quantity without requiring claims about precise rates for individual years.

The example from P84-1101 explains why fewer old keywords surviving can be a favorable outcome. A phrase whose extraction depends on the division of *processing* can look acceptable when judged on its own. Correcting the source removes the reason it appeared. The example from E93-1061 shows why the same outcome can also signal damage. Both findings enter the same kind of annual count. The manually inspected sample is what helps the authors interpret that broader count, with the time trend supplying a view over a wider part of the older collection.

### Limitations

#### Limits and qualifications the authors state

The authors have no clean test data for the older portion they aim to repair. They can score A2005 against known word boundaries because those boundaries were available when the test inputs were made. For B2005, they show a representative passage, check existing keywords, and compare the keyword findings over time. Those measurements answer questions about the changed files. The paper’s precision and recall come from the reconstruction test, so the older archive does not have a directly measured word-level precision and recall in the study.

The absence of the original SAFFRON version limits the downstream experiment. The paper cannot compare two keyword lists produced under the same extraction setup, with one run on the raw articles and the other on the revised articles. It can compare the presence of the old list in the two versions. That preserves a common set of strings for comparison, but it leaves the new output of the extractor unknown. The authors therefore have concrete evidence about whether earlier phrases survive, and indirect evidence about what an equivalent rerun of keyword extraction might return.

The authors explicitly discuss the role of formulas. Some of the errors found on the reconstruction test occur where the reference and the prediction space a formula differently. They see these errors as unlikely to matter much for their intended uses of prose, and for that reason give an adjusted pair of scores alongside the original results. This is an application-specific judgment about which disagreements deserve emphasis. The original scores retain the stricter definition, which a reader may prefer when the exact spacing of all material is relevant.

The keyword labels in the older sample are the work of one author. The paper says the distinction appeared sufficiently obvious to proceed without another annotator and without measuring agreement. The two disappearing phrases show a boundary to that judgment. Labeling the printed keyword may be easy when it visibly contains split fragments, while determining whether an apparently correct phrase reflects a valid span in its original sentence can require checking the article. The study makes that distinction visible through its follow-up inspection.

Finally, the authors report that they processed B2005 and planned to offer the resulting texts to the ACL Anthology editors alongside the raw collection. This establishes that the experiment produced an archive-sized output and states the authors’ release intention. The paper describes that next step prospectively.

#### Limits visible in the experimental setup

The evaluation on A2005 makes its inputs in a different way from the process that produced the OCR files. Space removal in the newer fragments leaves the non-space characters available in their original order. Old scans may also contain substituted characters, unusual symbols, and remnants of layout. The character context needed to identify a boundary can consequently be degraded in several ways at once in real OCR. The repaired example shows that readable segmentation can coexist with character errors. The test asks how well the system restores known spacing under its controlled corruption, so its scores cannot be read as an estimate of every form of damage in the scans.

The publication cutoff is also a proxy for the quality of source text. The authors choose 2005 conservatively and treat the newer articles as correctly spaced. This gives them reference text on a scale that would be difficult to obtain by annotating scans. It also ties the evaluation to the preparation quality and spacing conventions of that slice of the collection. The unknown-token analysis helps address one difference the authors anticipate between newer and older articles. It does not reproduce the interaction among unfamiliar vocabulary, scan damage, document layout, and historical variation in the earlier files.

Fragment preparation imposes another boundary on what is tested. The paper explains how the authors seek plausible cut points and use fixed-length fragments when other cuts leave long sequences. It gives word scores for the pipeline that results. There is no comparison of different fragmenting rules, so it remains unclear how often segmentation decisions near cuts are affected by missing context, or whether the chosen priorities help more in prose than in notation. The initial normalization of line breaks and hyphenated words is likewise part of the preparation. Its individual effect on archive quality cannot be read from the final counts.

The reported word metric treats whitespace-delimited units as the objects to recover. A change to a character can make a word fail to match even when its boundaries are correct. A misplaced space can affect the count for the parts on either side. The paper’s list-matching procedure accounts for repeated occurrences, but the aggregate scores still leave several kinds of behavior combined. They do not give separate rates for removing a bad blank, preserving a good blank, and retaining the exact non-space character sequence. The case of *a* joined to *rigid* identifies a concrete type of overcorrection without showing how frequently it happens throughout the archive.

There is also no reconstruction baseline on the A2005 test that would show how much improvement comes from this architecture relative to a different repair procedure. The authors’ reasons for using characters and choosing Nematus follow from the shape of the problem and from earlier studies. Their own evidence shows what the selected procedure achieves under its setup. A relative ranking of architectural choices, or a claim that one component is responsible for a particular gain, would call for a comparison the paper did not run.

In B2005, the older files provide an authentic application setting but the keyword test covers a selected part of their text. The phrases are the ones an extractor had already chosen, which makes the experiment relevant to the visible downstream problem. It also means the labels say little about boundary errors in ordinary stretches of prose that never yielded a keyword, or about meaningful phrases that earlier extraction missed entirely because their words had been fragmented. The disappearance of a bad string is desirable evidence, yet confirming what replaces it requires inspecting the repaired text. The study does this for examples, leaving no complete accounting of restored expressions throughout the collection.

The yearly keyword trends have a related limitation. They describe changes in occurrence for articles that have existing keywords. The authors’ explanation in terms of OCR quality is plausible within their observations of the files, but time of publication is associated with changes in how papers were produced and processed. The plots do not assign an independent measure of scan quality to each article. They show how the old keyword strings behave before and after repair across the years for which those strings are available. This supports a qualified connection between the archive’s condition and the effects of resegmentation.

The strongest claims therefore concern a specific repair in a specific collection. The word-level experiment demonstrates that the system can reconstruct much of the original spacing of newer ACL article fragments from their characters. The older-file experiment demonstrates that the repair substantially changes the presence of phrases already known to contain segmentation errors, while most correctly spaced phrases available for the test remain findable. Generalizing to other corpora, judging the exact text of every repaired article, or assessing tasks that rely on the formatting of mathematics would require evidence beyond those measurements.

### What came after

No later citing work is available to trace how other researchers extended or tested the approach. The paper itself records the immediate application. The authors used the procedure to resegment the pre-2005 portion of the ACL collection and planned to offer the resulting files to the Anthology editors. Their proposal was to make the repaired text available alongside the raw collection. The paper reports that the files had been processed. It leaves subsequent distribution, adoption, and evaluation open.

## Cite

Cite as Vivi Nastase and Julian Hitschler. 2018. Correction of OCR Word Segmentation Errors in Articles from the ACL Collection through Neural Machine Translation Methods. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{nastase2018correction,
  title = {{Correction of OCR Word Segmentation Errors in Articles from the ACL Collection through Neural Machine Translation Methods}},
  author = {Vivi Nastase and Julian Hitschler},
  booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
  year = {2018},
  doi = {10.63317/2gn4wbpg9mkw},
  url = {https://doi.org/10.63317/2gn4wbpg9mkw}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
