• No results found

The use of error tags in ARTFL’s Encyclopédie: Does good error identification lead to good error correction?

N/A
N/A
Protected

Academic year: 2020

Share "The use of error tags in ARTFL’s Encyclopédie: Does good error identification lead to good error correction?"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

T h e u s e o f e r r o r t a g s in A R T F L ' s

Encyclopgdie:

D o e s g o o d e r r o r i d e n t i f i c a t i o n l e a d t o g o o d e r r o r c o r r e c t i o n ?

D e r r i c k H i g g i n s

Department of Linguistics

University of Chicago

A b s t r a c t

Many corpora which are prime candidates for automatic error correction, such as the output of OCR software, and electronic texts incorporating markup tags, include informa- tion on which portions of the text are most likely to contain errors.

This paper describes how the error markup tag <?> is being incorporated in the spell-checking of an electronic version of Diderot's Encyclopddie, and evaluates whether the presence of this tag has signif- icantly aided in correcting the errors which it marks. Although the usefulness of error tagging may vary from project to project, even as the precise way in which the tagging is done varies, error tagging does not nec- essarily confer any benefit in attempting to correct a given word. It may, of course, nev- ertheless be useful in marking errors to be fixed manually at a later stage of processing the text.

1 The

Encyclopddie

1.1 P r o j e c t O v e r v i e w

The goal of this project is ultimately to detect and correct all errors in the elec- tronic version of the 18th century French encyclopedia of Diderot and d'Alembert, a corpus of ca. 18 million words. This text is currently under development by the Project for American and French Research on the Treasury of the French Language (ARTFL); a project overview and limited sample of searchable text from the Encyclopddie are available at:

http ://humanities. uchicago, edu/ARTFL/pro j ect s/encyc/. Andreev et al. (1999) also provides a

thorough summary of the goals and status of the project.

The electronic text was largely transcribed from the original, although parts of it were produced by optical character recognition on scanned images. Unfortunately, whether a section of text was transcribed or produced by OCR was not recorded at the time of data capture, so that the error correction strategy cannot be made sensitive to this parameter. Judging from a small hand-checked section of the text, the error rate is fairly low; about one word in 40 contains an error. It should also be added that the version of the text with which I am working has already been subjected to some corrective measures after the initial data capture stage. For exam- ple, common and easily identifiable mistakes such as the word enfant showing up as en- sant were simply globally repaired through- out the text. (The original edition of the En- cyclop~die made use of the sharp 's', which was often confused with an 'f' during data entry--cf. Figure 1.)

At present, my focus is on non-word er- ror detection and correction, although use of word n-grams seems to be a fairly straight- forward extension to allow for the kind of context-sensitivity in error correction which has been the focus of much recent work (cf. Golding and Roth (1999), Mays et al. (1991), Yarowsky (1995)).

The approach I am pursuing is an appli- cation of Bayesian statistics. We treat the process by which the electronic text was pro- duced as a noisy channel, and take as our goal the maximization of the probability of each input word, given a string which is the

(2)

Figure 1: Example text from the

Encyclopddie.

Note the similarity between the 'f' and the problematic sharp 's' in

signifie

;'

gn

e

/

A B S I ~ N ' f , a d j . cn

D r o i t ,

nifie n-g

I

qui-

conq,== eft:.61oign~

de fon domicile,

~B~r.t~r, Cn

mat2er¢ de.p.ref'cri#tiO¢l, f e

dit de

cehd

qttl eft:

¢ta,~ une autre t,roi, it~ee qile cclle off eft: le pt,ff~fl'e.ur d= ftJn, lJt:rlrage. F . P/~,r.scrt,t, r l o / , / o ' Pru~- sr/¢r. Les

al,feat

q u i le f o n t pour l'mt6r~t de

l'¢:a~ •

fon~ rt~ptl t~s pr~fe

n s, quot ies de commodis ¢orum ag~ tur.

output of the noisy channel. If we repre- sent the correct form by we, and the ob- served form by

wo,

our goal can be described as finding the wc which maximizes

p(wclwo),

the probability that wc is the intended form, given that

wo

is the observed form.

By Bayes' rule, this can be reduced to the problem of maximizing p(wolwc)p(wc) Of pCwo) course, the probability of the observed string will be constant across all candidate correc- tions, so the same w~ will also maximize p(wolwc)p(w~).

The term

p(w~)

(the

prior

probability) can be estimated by doing frequency counts on a corpus. In this case, I am using an interpo- lated model of Good-Turing smoothed word and letter probabilities as the prior.

The term

p(WolW~)

is called the

error

model.

Intuitively, it quantifies the prob- ability of certain kinds of errors resulting from the noisy channel. It is implemented as a confusion matrix, which associates a probability with each i n p u t / o u t p u t charac- ter pair, representing the probability of the input character being replaced by the out- put character. These probabilities can be estimated from a large corpus tagged for er- rors, but since I do not have access to such a source for this project, I needed to train the matrix as described in Kernighan et al.

(1990).

Cf. Jurafsky and Martin (1999) for an in-

troduction to spelling correction using con- fusion matrices, and Kukich (1992) for a sur- vey of different strategies in spelling correc- tion.

1.2 T r e a t m e n t of <?>

A number of different SGML-style tags are currently used in the encoding of the

En-

cyclopddie,

ranging from form-related tags such as <i> (for italic text), to semantic markup tags such as < a r t i c l e > , to the error tag <?>, the treatment of which is the focus of this article. The data entry specification for the project prescribes the use of <?> in all cases in which the keyboard operator has any doubt as to the identity of a printed character, and also when symbols appear in the text which cannot be represented in the Latin-1 codepage (except for Greek text, which is handled by other means). Other instances of the <?> tag were produced as indications of mistakes in O C R output.

Some examples of the use of the error tag from the actual corpus include the following:

<?> <?>darts J ' < ? > i ab<?>ci<?><?>es d ' a u t r e < ? > a l a d i e s

for a Hebrew R for

dans

for

J'ai

for

abscisses

for

d'autres maladies

[image:2.612.302.537.625.692.2]
(3)

ond case, it was somehow inserted superflu- ously (most likely by OCR). In the t h i r d row, <?> stands in for a single missing character, and in the fourth it does the same, but three times in a single word. Finally, in the last row the error tag indicates the omission of multiple characters, and even a word bound- ary.

In fact, as Table 1 shows, words which in- clude t h e error t a g generally have error types which are m o r e difficult to correct t h a n av- erage. O u r confusion m a t r i x - b a s e d approach is best at h a n d l i n g substitutions (e.g.,

onfin

enfin),

deletions

( apeUent --~ appellent),

and insertions

(asselain ~ asselin),

and can- not correct words with multiple errors at all. 1

"Unrecoverable" errors are those in which no "correction" is possible, for example, w h e n n o n - A S C I I symbols occur in the original.

T h e fact t h a t the error t a g is used to code such a wide variety of irregularities in the corpus makes it difficult to i n c o r p o r a t e into our general error correction strategy. Since <?> so often o c c u r r e d as a r e p l a c e m e n t for a single, missing character, however, I t r e a t e d it as a c h a r a c t e r in the l a n g u a g e model, b u t one w i t h an e x t r e m e l y low probability, so t h a t any suggested correction would have to get rid of it in order to appreciably increase the probability of the word.

In short, <?> is included in t h e confusion m a t r i x as a c h a r a c t e r which m a y occur as the result of interference from the noisy chan- nel, but is highly unlikely to a p p e a r inde- p e n d e n t l y in t h e language. This approach ignores the m a n y cases of multiple errors in- dicated by the error tag, b u t these p r o b a b l y pose too difficult a problem for this stage of the p r o j e c t anyhow. T h e funding available for the project does not c u r r e n t l y allow us to pursue t h e possibility of c o m p u t e r - a i d e d er- ror correction; rather, the p r o g r a m m u s t cor- rect as m a n y errors as it can w i t h o u t h u m a n intervention. Toward this end, we are will- ing to sacrifice t h e ability to cope w i t h more

1 Actually, it does have a mechanism for dealing with cases such as ab<?>ci<?><?>es, in which the error tag occurs multiple times, but stands for a sin- gle letter in each case.

esoteric error types in order to improve the reliability of the system on o t h e r error types. T h e actual p e r f o r m a n c e of the spelling correction a l g o r i t h m on words which include the error tag, while c o m p a r a b l e to the per- formance on o t h e r words, is p e r h a p s not as high as we m i g h t initially have hoped, given t h a t t h e y were a l r e a d y t a g g e d as errors. Of the corrections suggested for words w i t h o u t <?>, 47% were accurate, while of t h e cor- rections suggested for words w i t h <?>, 29% were accurate. 2 Actually, if we include cases in which the p r o g r a m correctly identified an error as "unrecoverable", a n d opted to m a k e no change, t h e p e r c e n t a g e for <?> sugges- tions rises to 71%.

It m a y seem t h a t these n u m b e r s in fact u n d e r m i n e t h e thesis t h a t t h e error tagging in t h e

Encyclopddie

was not useful in error correction. I.e., if t h e correction a l g o r i t h m exhibits t h e correct b e h a v i o r on 47% of un- tagged errors, a n d on 71% of tagged errors, it seems t h a t t h e tags are helping out some- what. Actually, this is not the case. First, we should not give t h e s a m e weight to cor- rect behavior on unrecoverable errors (which m e a n s giving up on correction) a n d correct behavior on o t h e r errors (which m e a n s actu- ally finding the correct form). Second, the tagged errors are often simply 'worse' t h a n u n t a g g e d errors, so t h a t even if t h e O C R or k e y b o a r d o p e r a t o r h a d m a d e a guess at the correct form, t h e y would have easily been identifiable as errors, a n d even errors of a certain type. For example, I m a i n t a i n t h a t the form a b < ? > c i < ? > < ? > e s would have been no more difficult to correct h a d it o c c u r r e d

i n s t e a d as a b f c i f f e s .

2

C o n c l u s i o n

In sum, the errors w h i c h are m a r k e d w i t h the <?> tag in t h e electronic version of the

2I admit that these numbers may seem low, but bear in mind that the percentage reflects the accu- racy of the

first guess

made by the system, since its operation is required to be entirely automatic. Fur- thermore, the correction task is made more difficult by the fact that the corpus is an encyclopedia, which contains more infrequent words and proper names than most corpora.
(4)

Substitution Deletion

37.4% 0%

Insertion Word- breaking

2.2% 0%

Multiple

16.5% Contains <?>

Does not

contain <?> 58.5% 11.6% 6.8% 12.9% 10.2% 0%

Unrecoverable

44%

Table 1: Breakdown of error types, according to whether the word contains <?>

Encyclopddie

encompass so many distinct er- ror types, and errors of such difficulty, that it is hard to come up with corrections for many of them without human intervention. For this reason, experience with the

Ency-

clopddie

project suggests that error tagging is not necessarily a great aid in performing automatic error correction.

There is certainly a great deal of room for further investigation into the use of meta- data in spelling correction in general, how- ever. While the error tag is a somewhat unique member of the tagset, in that it typ- ically flags a subpart of a word, rather than a string of words, this should not be taken to mean that it is the only tag which could be employed in spelling correction. If noth- ing else, "wider-scope" markup tags can be helpful in determining when certain parts of the corpus should not be seen as represen- tative of the language model, or should be seen as representative of a distinct language model. (For example, the italic tag <±>. of- ten marks Latin text in the

Encyclopddie.)

Ultimately, I believe that what is needed in order for text tagging to be useful in er- ror correction is a recognition that the tagset will influence the correction process. Tags which are applied in such a way as to de- limit sections of text which are relevant to correction (such as names, equations, and foreign language text), will be of greater use than tags which represent a mixture of such classes. Error tagging in particular should be most useful if it does not conflate quite distinct things that may be "wrong" with a text, such as illegibility of the original, unrenderable symbols, and OCR inaccura- cies. Such considerations are certainly rele- vant in the evaluation of emerging text en-

coding standards, such as the specification of the Text Encoding Initiative.

R e f e r e n c e s

Leonid Andreev, Jack Iverson, and Mark Olsen. 1999. Re-engineering a war- machine:

ARTFL 's Encyclopddie. Liter-

ary and Linguistic Computing,

14(1):11- 28.

Denis Diderot and Jean Le Rond d'Alembert, editors. 1976 [1751-1765].

Encyclopddie, ou Dictionnaire raisonnd

des sciences, des arts et des mdtiers.

Re- search Publications, New Haven, Conn. Microfilm.

Andrew R. Golding and Dan Roth. 1999. A winnow-based approach to context- sensitive spelling correction.

Machine

Learning,

34(1):107-130.

Daniel Jurafsky and James Martin. 1999.

Speech and Language Processing: An In-

troduction to Speech Recognition, Natural

Language Processing and Computational

Linguistics.

Prentice Hall.

M. D. Kernighan, K. W. Church, and W. A. Gale. 1990. A spelling correction program based on a noisy channel model. In

Pro-

ceedings of the 13th International Confer-

ence on Computational Linguistics (COL-

ING '90),

volume 2, pages 205-211. Karen Kukich. 1992. Techniques for auto-

matically correcting words in text.

A CM

Computing Surveys,

24(4):377-439.

Eric Mays, Fred J. Damerau, and Robert L. Mercer. 1991. Context based spelling cor- rection.

Information Processing ~ Man-

agement,

27(5):517-522. [image:4.612.76.546.73.144.2]
(5)

nual Meeting of the Association for Com-

putational Linguistics,

volume 33, pages 189-196.

Figure

Figure 1: Example text from the Encyclopddie. Note the similarity between the 'f' and the problematic sharp 's' in signifie
Table 1: Breakdown of error types, according to whether the word contains <?>

References

Related documents

 To develop a single integrated data model architecture for the automation of business processes and exchange of data among software applications used in

We show that the mixture reaches ultimately a stationary micro-structural state made of phase domains with composition and size distribution mapped to the values of the incident flux

Tri skandinavske države imale su različite interese i oprečne sim patije. Norveška, čija je kraljica bila engleska princeza, bila je s Velikom Britanijom povezana

The Ontario Electrical Safety Code and Ontario Regulation 438/07 recognize certification organizations accredited by the Standards Council of Canada to approve electrical

c) Mismatch between worker’s educational attainment and occupational requirements (Ketidaksesuaian antara pencapaian pendidikan dengan persyaratan pekerjaan).

Data from 237 patients revealed no difference in the use of pain or anti-emetic medication between the groups, though patients subjected to the HT intervention showed a greater

A refresher course on modern physics covering the historical development of quantum mechanics, special relativity, Schrodinger's Equation, and the basic notions of spin and

BSG structure features rapid achievement of a certain FC reduction with relatively lower total cost, but its cost effectiveness and fuel consumption performance