<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="913"/><title>Language Independent Text Correction using Finite State Automata</title><author surname="Hassan" givenname="Ahmed"><org  name="IBM Cairo Technology Development Center" country="Egypt" city="Giza"/></author><author surname="Noeman" givenname="Sara"><org  name="IBM Cairo Technology Development Center" country="Egypt" city="Giza"/></author><author surname="Hassan" givenname="Hany"><org  name="IBM Cairo Technology Development Center" country="Egypt" city="Giza"/></author></firstpageheader><frontmatter><p><b>Language Independent Text Correction using Finite State Automata</b></p><p><b>Ahmed Hassan* Sara Noeman Hany Hassan</b></p><p>IBM Cairo Technology Development Center Giza, Egypt</p><p>hasanah,noemans,hanyh@eg.ibm.com</p></frontmatter><abstract>Many natural language applications, like machine translation and information extrac­tion, are required to operate on text with spelling errors. Those spelling mistakes have to be corrected automatically to avoid deteriorating the performance of such ap­plications. In this work, we introduce a novel approach for automatic correction of spelling mistakes by deploying finite state automata to propose candidates corrections within a specified edit distance from the mis­spelled word. After choosing candidate cor­rections, a language model is used to assign scores the candidate corrections and choose best correction in the given context. The proposed approach is language independent and requires only a dictionary and text data for building a language model. The ap­proach have been tested on both Arabic and English text and achieved accuracy of 89%. </abstract></header><body><section number="1" title="Introduction"><p>The problem of detecting and correcting misspelled words in text has received great attention due to its importance in several applications like text edit­ing systems, optical character recognition systems, and morphological analysis and tagging (Roche and Schabes, 1995). Other applications, like machine translation and information extraction, operate on text that might have spelling errors. The automatic detection, and correction of spelling erros should be of great help to those applications.</p><p>The problem of detecting and correcting mis­spelled words in text is usually solved by checking whether a word already exists in the dictionary or not. If not, we try to extract words from the dictio­nary that are most similar to the word in question.</p><p>Now with the University of Michigan Ann Arbor, has-sanam@umich.edu</p><p>Those words are reported as candidate corrections for the misspelled word.</p><p>Similarity between the misspelled word and dic­tionary words is measured by the Levenshtein edit distance (Levenshtein, 1966; Wagner and M.Fisher, 1974). The Levenshtein edit distance is usu­ally calculated using a dynamic programming tech­nique with quadratic time complexity (Wagner and M.Fisher, 1974). Hence, it is not reasonable to com­pare the misspelled word to each word in the dictio­nary while trying to find candidate corrections.</p><p>The proposed approach uses techniques from fi­nite state theory to detect misspelled words and to generate a set of candidate corrections for each mis­spelled word. It also uses a language model to select the best correction from the set of candidate correc­tions using the context of the misspelled word. Us­ing techniques from finite state theory, and avoiding calculating edit distances makes the approach very fast and efficient. The approach is completely lan­guage independent, and can be used with any lan­guage that has a dictionary and text data to building a language model.</p><p>The rest of this paper will proceed as follows. Section 2 will present an overview of related work. Section 3 will discuss the different aspects of the proposed approach. Section 4 presents a perfor­mance evaluation of the system. Finally a conclu­sion is presented in section 5.</p></section><section number="2" title="Related Work"><p>Several solutions were suggested to avoid comput­ing the Levenshtein edit distance while finding can­didate corrections. Most of those solutions select a number of dictionary words that are supposed to contain the correction, and then measure the dis­tance between the misspelled word and all selected words. The most popular of those methods are the similarity keys methods (Kukich, 1992; Zobel and Dart, 1995; De Beuvron and Trigano, 1995). In those methods, the dictionary words are divided into classes according to some word features.<page local="2" global="914"/> The input word is compared to words in classes that have sim­ilar features only.</p><p>In addition to the techniques discussed above, other techniques from finite state automata have been recently proposed. (Oflazer, 1996) suggested a method where all words in a dictionary are treated as a regular language over an alphabet of letters. All the words are represented by a finite state machine automaton. For each garbled input word, an exhaus­tive traversal of the dictionary automaton is initiated using a variant of Wagner-Fisher algorithm (Wag­ner and M.Fisher, 1974) to control the traversal of the dictionary. In this approach Levenshtein dis­tance is calculated several times during the traversal. The method carefully traverses the dictionary such that the inspection of most of the dictionary states is avoided. (Schulz and Mihov, 2002) presents a variant of Oflazers's approach where the dictionary is also represented as deterministic finite state au­tomaton. However, they avoid the computation of Levenshtein distance during the traversal of the dic­tionary automaton. In this technique, a finite state acceptor is constructed for each input word. This acceptor accepts all words that are within an edit dis­tance k from the input word. The dictionary automa­ton and the Levenshtein-automaton are then tra­versed in parallel to extract candidate corrections for the misspelled word. The authors present an algo­rithm that can construct a deterministic Levenshtein-automaton for an arbitrary word of degrees 1, and 2 which corresponds to 1 or 2 errors only. They suggest another algorithm that can construct a non-deterministic Levenshtein-automaton for any other degree. They report results using a Levenshtein-automaton of degree 1(i.e. words having a single insertion, substitution, or deletion) only.</p><p>The method we propose in this work also assumes that the dictionary is represented as a determinis­tic finite state automaton. However, we completely avoid computing the Levenshtein-distance at any step. We also avoid reconstructing a Levenshtein-automaton for each input word. The proposed method does not impose any constraints on the bound k, where k is the edit distance between the input word and the candidate corrections. The ap­proach can adopt several constraints on which characters can substitute certain other characters. Those constraints are obtained from a phonetic and spatial confusion matrix of characters.</p><figure caption="Figure 1: An FSM representation of a word list"></figure><p>The purpose of context-dependent error correc­tion is to rank a set of candidate corrections tak­ing the misspelled word context into account. A number of approaches have been proposed to tackle this problem that use insights from statistical ma­chine learning (Golding and Roth, 1999), lexical semantics (Hirst and Budanitsky, 2005), and web crawls (Ringlstetter et al., 2007).</p></section><section number="3" title="Error Detection and Correction in Text Using FSMs"><p>The approach consists of three main phases: detect­ing misspelled words, generating candidate correc­tions for them, and ranking corrections. A detailed description of each phase is given in the following subsections.</p><subsection number="3.1" title="Detecting Misspelled Words"><p>The most direct way for detecting misspelled words is to search the dictionary for each word, and report words not found in the dictionary. However, we can make use of the finite state automaton representation of the dictionary to make this step more efficient. In the proposed method, we build a finite state ma­chine (FSM) that contains a path for each word in the input string. This FSM is then composed with the dictionary FSM. The result of the composition is merely the intersection of the words that exist in both the input string and the dictionary. If we calcu­lated the difference between the FSM containing all words and this FSM, we get an FSM with a path for each misspelled word.<page local="3" global="915"/> Figure 1 illustrate an FSM that contain all words in an input string.</p></subsection><subsection number="3.2" title="Generating Candidate Corrections"><p>The task of generating candidate corrections for mis­spelled words can be divided into two sub tasks: Generating a list of words that have edit distance less than or equal k to the input word, and select­ing a subset of those words that also exist in the dic­tionary. To accomplish those tasks, we create a sin­gle transducer(Levenshtein-transducer) that is when composed with an FSM representing a word, gen­erates all words withing any edit distance k from the input word. After composing the misspelled word with Levenshtein-transducer, we compose the resulting FSM with the dictionary FSM to filter out words that do not exist in the dictionary.</p><subsubsection number="3.2.1" title="Levenshtein-transducers for primitive edit distances"><p>To generate a finite state automaton that con­tain all words within some edit distance to the in­put word, we use a finite state transducer that al­lows editing its input according to the standard Levenshtein-distance primitive operations: substitu­tion, deletion, and insertion.</p><p>A finite-state transducers (FST) is a a 6-tuple (Q, <i>Ei</i>, E2, <i>a, </i>i, F), where Q is a set of states, Eiis the input alphabet, E2 is the output alphabet, i is the initial state, F C Q is a set of final states, and <i>a </i>is a transition function (Hopcroft and Ullman, 1979; Roche and Shabes, 1997). A finite state acceptor is a special case of an FST that has the same input/output at each arc.</p><p>Figure 2 illustrates the Levenshtein-transducer for edit distance 1 over a limited set of vocabulary <i>(a,b, </i>and c). We can notice that we will stay in state zero as long as the output is identical to the input. On the other hand we can move from state zero, which corresponds to edit distance zero, to state one, which corresponds to edit distance one, with three different ways:</p><p>• input is mapped to a different output (input is consumed and a different symbol is emitted) which corresponds to a substitution,</p><p>• input is mapped to an epsilon (input is con­sumed and no output emitted) which corre­sponds to a deletion, and</p><doubt alpha="54.5" length="33" tooSmall="False" monospace="0.0">&lt;epsilon&gt;:a/0 &lt;epsilon&gt;:b/0 b:c/0</doubt><doubt alpha="61.5" length="13" tooSmall="False" monospace="0.0">c:&lt;epsilon&gt;/0</doubt><p>• an epsilon is mapped to an output (output is emitted without consuming any input) which corresponds to an insertion.</p><p>Once we reach state 1 , the only possible transitions are those that consume a symbol and emit the same symbol again and hence allowing only one edit op­eration to take place.</p><p>When we receive a new misspelled word, we rep­resent it with a finite state acceptor that has a single path representing the word, and then compose it with the Levenshtein-transducer. The result of the com­position is a new FSM that contains all words with edit distance 1 to the input word.</p></subsubsection><subsubsection number="3.2.2" title="Adding transposition"><p>Another non-primitive edit distance operation that is frequently seen in misspelled words is transposi­tion. Transposition is the operation of exchanging the order of two consecutive symbols <i>(ab — </i>ba). Transposition is not a primitive operation because it can be represented by other primitive operations. However, this makes it a second degree operation. As transposition occurs frequently in misspelled words, adding it to the Levenshtein-transducer as a single editing operation would be of great help.</p><table caption="Figure 2: A Levenshtein-transducer (edit distance 1)" class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b><i>.cM) ,</i></b></p></td><td class="cell"><p><i>f</i></p></td><td class="cell"><p>Ajjib/0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>\        c:a/0 [</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>c:b/0 /</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>o Jt</p></td><td class="cell"><p>_ &lt;epsilon&gt;:c/0 <b>J|</b></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>N</b>sa:&lt;epsilon&gt;/O^j|</p></td><td class="cell"><p><b>Sr</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><b>V </b>a:b/0</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>\ a:c/0</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>V b:&lt;epsilon&gt;/0^/</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>\      b:a/0 <i>y</i></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="4" global="916"/><figure caption="Figure 3: A Levenshtein-transducer for edit distance 1 with transposition"></figure><p>To add transposition, as a single editing opera­tion, to the Levenshtein-transducer we add arcs be­tween states zero and one that can map any symbol sequence <i>xy </i>to the symbol sequence <i>yx, </i>where x, and y are any two symbols in the vocabulary. Fig­ure 3 shows the Levenshtein-transducer with degree 1 with transposition over a limited vocabulary <i>(a </i>and b).</p></subsubsection><subsubsection number="3.2.3" title="Adding symbol confusion matrices"><p>Adding a symbol confusion matrix can help re­duce the number of candidate corrections. The con­fusion matrix determines for each symbol a set of symbols that may have substituted it in the garbled word. This matrix can be used to reduce the num­ber of candidate corrections if incorporated into the Levenshtein-transducer. For any symbol <i>x, </i>we add an arc x : y between states zero, and one in the trans­ducer where y e <i>Confusion-Matrix(x) </i>rather than for all symbols <i>y </i>in the vocabulary.</p><p>The confusion matrix can help adopt the meth­ods to different applications. For example, we can build a confusion matrix for use with optical char­acter recognition error correction that captures er­rors that usually occur with OCRs. When used with a text editing system, we can use a confusion ma­trix that predicts the confused characters according to their phonetic similarity, and their spatial location on the keyboard.</p><figure caption="Figure 4: A Levenshtein-transducer for edit distance 2 with transposition"></figure></subsubsection><subsubsection number="3.2.4" title="Using degrees greater than one"><p>To create a Levenshtein-transducer that can gen­erate all words within edit distance two of the input word, we create a new state (2) that maps to two edit operations, and repeat all arcs that moves from state 0 to state 1 to move from state 1 to state 2.</p><p>To allow the Levenshtein-transducer of degree two to produce words with edit distance 1 and 2 from the input word, we mark both state 1, and 2 as final states. We may also favor corrections with lower edit distances by assigning costs to final states, such that final states with lower number of edit operations get lower costs. A Levenshtein-transducer of degree 2 for the limited vocabulary <i>(a </i>and <i>b) </i>is shown in figure 4.</p></subsubsection></subsection><subsection number="3.3" title="Ranking Corrections"><p>To select the best correction from a set of candidate corrections, we use a language model to assign a probability to a sequence of words containing the corrected word. To get that word sequence, we go back to the context where the misspelled word ap­peared, replace the misspelled word with the candi­date correction, and extract <i>n </i><i>ngrams </i>containing the candidate correction word in all possible positions in the <i>ngram. </i>We then assign a score to each <i>ngram </i>using the language model, and assign a score to the candidate correction that equals the average score of all <i>ngrams. </i>Before selecting the best scoring cor­rection, we penalize corrections that resulted from higher edit operations to favor corrections with the minimal number of editing operations.</p><page local="5" global="917"/></subsection></section><section number="4" title="Experimental Setup"><subsection number="4.1" title="Time Performance"><p>The proposed method was implemented in C++ on a 2GHz processor machine under Linux. We used 11,000 words of length 3,4,..., and 13, 1,000 word for each word length, that have a single error and computed correction candidates. We report both the average correction time, and the average number of corrections for each word length. The experiment was run twice on different test data, one with con­sidering transposition as primitive operation, and the other without. We also repeated the experiments for edit distance 2 errors, and also considered the two cases where transposition is considered as a primi­tive operation or not. Table 1 shows the results for an English dictionary of size 225,400 entry, and Ta­ble 2 shows the results for an Arabic dictionary that has 526,492. entries.</p></subsection><subsection number="4.2" title="Auto-correction accuracy"><p>To measure the accuracy of the auto-correction pro­cess, we used a list of 556 words having common spelling errors of both edit distances 1 and 2. We put a threshold on the number of characters per word to decide whether it will be considered for edit distance 1 or 2 errors. When using a threshold of 7, the spell engine managed to correct 87% of the words. This percentage raised to 89% when all words were con­sidered for edit distance 2 errors. The small degra­dation in the performance occured because in 2% of the cases, the words were checked for edit distance 1 errors although they had edit distance 2 errors. Fig­ure 6 shows the effect of varying the characters limit on the correction accuracy.</p><p>Figure 5 shows the effect of varying the weight as­signed to corrections with lower edit distances on the accuracy. As indicated in the figure, when we only consider the language model weight, we get accura­cies as low as 79%. As we favor corrections with lower edit distances the correction accuracy raises, but occasionally starts to decay again when empha­sis on the low edit distance is much larger than that on the language model weights.</p><p>Finally, we repeated the experiments but with using a confusion matrix, as 3.<page local="6" global="918"/>2.3. We found out that the average computation time dropped by 78% (be­low 1 ms for edit distance 1 errors) at the price of losing only 8% of the correction accuracy.</p><table caption="Table 1: Results for English" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Edit 1/with trans.</p></td><td class="cell"><p>Edit 1/no trans.</p></td><td class="cell"><p>Edit 2/with trans.</p></td><td class="cell"><p>Edit 2 / no trans.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>word len.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>3</b></p></td><td class="cell"><p>3.373273</p></td><td class="cell"><p>18.769</p></td><td class="cell"><p>2.983733</p></td><td class="cell"><p>18.197</p></td><td class="cell"><p>73.143538</p></td><td class="cell"><p>532.637</p></td><td class="cell"><p>69.709387</p></td><td class="cell"><p>514.174</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>4</b></p></td><td class="cell"><p>3.280419</p></td><td class="cell"><p>4.797</p></td><td class="cell"><p>2.796275</p></td><td class="cell"><p>4.715</p></td><td class="cell"><p>67.864291</p></td><td class="cell"><p>136.230</p></td><td class="cell"><p>66.279842</p></td><td class="cell"><p>131.680</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>5</b></p></td><td class="cell"><p>3.321769</p></td><td class="cell"><p>1.858</p></td><td class="cell"><p>2.637421</p></td><td class="cell"><p>1.838</p></td><td class="cell"><p>73.718353</p></td><td class="cell"><p>33.434</p></td><td class="cell"><p>68.695935</p></td><td class="cell"><p>32.461</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>6</b></p></td><td class="cell"><p>3.590046</p></td><td class="cell"><p>1.283</p></td><td class="cell"><p>2.877242</p></td><td class="cell"><p>1.277</p></td><td class="cell"><p>75.465624</p></td><td class="cell"><p>11.489</p></td><td class="cell"><p>69.246055</p></td><td class="cell"><p>11.258</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>7</b></p></td><td class="cell"><p>3.817453</p></td><td class="cell"><p>1.139</p></td><td class="cell"><p>2.785156</p></td><td class="cell"><p>1.139</p></td><td class="cell"><p>78.231015</p></td><td class="cell"><p>6.373</p></td><td class="cell"><p>72.2057</p></td><td class="cell"><p>6.277</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>8</b></p></td><td class="cell"><p>4.073228</p></td><td class="cell"><p>1.063</p></td><td class="cell"><p>5.593761</p></td><td class="cell"><p>1.062</p></td><td class="cell"><p>77.096026</p></td><td class="cell"><p>4.127</p></td><td class="cell"><p>73.361455</p></td><td class="cell"><p>4.066</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>9</b></p></td><td class="cell"><p>4.321661</p></td><td class="cell"><p>1.036</p></td><td class="cell"><p>3.124661</p></td><td class="cell"><p>1.036</p></td><td class="cell"><p>76.991945</p></td><td class="cell"><p>3.122</p></td><td class="cell"><p>73.058418</p></td><td class="cell"><p>3.091</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>10</b></p></td><td class="cell"><p>4.739503</p></td><td class="cell"><p>1.020</p></td><td class="cell"><p>3.2084</p></td><td class="cell"><p>1.020</p></td><td class="cell"><p>75.427416</p></td><td class="cell"><p>2.706</p></td><td class="cell"><p>72.2143</p></td><td class="cell"><p>2.685</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>11</b></p></td><td class="cell"><p>4.892105</p></td><td class="cell"><p>1.007</p></td><td class="cell"><p>3.405101</p></td><td class="cell"><p>1.007</p></td><td class="cell"><p>77.045616</p></td><td class="cell"><p>2.287</p></td><td class="cell"><p>71.293116</p></td><td class="cell"><p>2.281</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>12</b></p></td><td class="cell"><p>5.052191</p></td><td class="cell"><p>0.993</p></td><td class="cell"><p>3.505089</p></td><td class="cell"><p>0.993</p></td><td class="cell"><p>78.616536</p></td><td class="cell"><p>1.910</p></td><td class="cell"><p>75.709801</p></td><td class="cell"><p>1.904</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>13</b></p></td><td class="cell"><p>5.403557</p></td><td class="cell"><p>0.936</p></td><td class="cell"><p>3.568391</p></td><td class="cell"><p>0.936</p></td><td class="cell"><p>81.145124</p></td><td class="cell"><p>1.575</p></td><td class="cell"><p>78.732955</p></td><td class="cell"><p>1.568</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 2: Results for Arabic" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Edit 1/with trans.</p></td><td class="cell"><p>Edit 1/no trans.</p></td><td class="cell"><p>Edit 2/with trans.</p></td><td class="cell"><p>Edit 2 / no trans.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>word len.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"><p><b>av. time</b></p></td><td class="cell"><p><b>av. correcs.</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>3</b></p></td><td class="cell"><p>5.710543</p></td><td class="cell"><p>31.702</p></td><td class="cell"><p>4.308018</p></td><td class="cell"><p>30.697</p></td><td class="cell"><p>83.971263</p></td><td class="cell"><p>891.579</p></td><td class="cell"><p>75.539547</p></td><td class="cell"><p>862.495</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>4</b></p></td><td class="cell"><p>6.033066</p></td><td class="cell"><p>12.555</p></td><td class="cell"><p>4.036479</p></td><td class="cell"><p>12.196</p></td><td class="cell"><p>80.481281</p></td><td class="cell"><p>308.910</p></td><td class="cell"><p>71.042372</p></td><td class="cell"><p>296.776</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>5</b></p></td><td class="cell"><p>7.060306</p></td><td class="cell"><p>6.265</p></td><td class="cell"><p>4.360373</p></td><td class="cell"><p>6.162</p></td><td class="cell"><p>79.320644</p></td><td class="cell"><p>104.661</p></td><td class="cell"><p>69.71572</p></td><td class="cell"><p>100.428</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>6</b></p></td><td class="cell"><p>9.08935</p></td><td class="cell"><p>4.427</p></td><td class="cell"><p>4.843784</p></td><td class="cell"><p>4.359</p></td><td class="cell"><p>79.878962</p></td><td class="cell"><p>51.392</p></td><td class="cell"><p>74.197127</p></td><td class="cell"><p>48.991</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>7</b></p></td><td class="cell"><p>8.469497</p></td><td class="cell"><p>3.348</p></td><td class="cell"><p>5.419919</p></td><td class="cell"><p>3.329</p></td><td class="cell"><p>82.231107</p></td><td class="cell"><p>24.663</p></td><td class="cell"><p>70.681298</p></td><td class="cell"><p>23.781</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>8</b></p></td><td class="cell"><p>10.078842</p></td><td class="cell"><p>2.503</p></td><td class="cell"><p>5.593761</p></td><td class="cell"><p>2.492</p></td><td class="cell"><p>85.32005</p></td><td class="cell"><p>13.586</p></td><td class="cell"><p>71.557569</p></td><td class="cell"><p>13.267</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>9</b></p></td><td class="cell"><p>10.127946</p></td><td class="cell"><p>2.140</p></td><td class="cell"><p>6.027077</p></td><td class="cell"><p>2.136</p></td><td class="cell"><p>83.788916</p></td><td class="cell"><p>8.733</p></td><td class="cell"><p>76.199034</p></td><td class="cell"><p>8.645</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>10</b></p></td><td class="cell"><p>11.04873</p></td><td class="cell"><p>1.653</p></td><td class="cell"><p>6.259901</p></td><td class="cell"><p>1.653</p></td><td class="cell"><p>92.671732</p></td><td class="cell"><p>6.142</p></td><td class="cell"><p>81.007893</p></td><td class="cell"><p>6.089</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>11</b></p></td><td class="cell"><p>12.060286</p></td><td class="cell"><p>1.130</p></td><td class="cell"><p>7.327353</p></td><td class="cell"><p>1.129</p></td><td class="cell"><p>94.726469</p></td><td class="cell"><p>4.103</p></td><td class="cell"><p>77.464609</p></td><td class="cell"><p>4.084</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>12</b></p></td><td class="cell"><p>13.093397</p></td><td class="cell"><p>0.968</p></td><td class="cell"><p>7.194902</p></td><td class="cell"><p>0.967</p></td><td class="cell"><p>95.35985</p></td><td class="cell"><p>2.481</p></td><td class="cell"><p>82.40306</p></td><td class="cell"><p>2.462</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>13</b></p></td><td class="cell"><p>13.925067</p></td><td class="cell"><p>0.924</p></td><td class="cell"><p>7.740105</p></td><td class="cell"><p>0.921</p></td><td class="cell"><p>106.66238</p></td><td class="cell"><p>1.123</p></td><td class="cell"><p>78.966914</p></td><td class="cell"><p>1.109</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="16.7" length="6" tooSmall="True" monospace="0.0">0 7R--</doubt><doubt alpha="0.0" length="6" tooSmall="True" monospace="0.0">0.76--</doubt><doubt alpha="4.8" length="21" tooSmall="False" monospace="0.0">0.74-I-1-1-1-1-1-1-1-</doubt><figure caption="Figure 5: Effect of increasing lower edit distance favoring factor on accuracy"></figure><doubt alpha="0.0" length="8" tooSmall="True" monospace="0.0">0.91 0.9</doubt><doubt alpha="29.8" length="114" tooSmall="True" monospace="0.0">All- Ecl2 Ecl2 Ed2 Ed2 Ed2 Ed2 Ed2 Ed2 Ed2 Ed2 AIU Ed2     &gt;3     &gt;4     &gt;5     &gt;3     &gt;7      &gt;0&gt;S     &gt;t0&gt;12 Ed1</doubt><doubt alpha="81.2" length="16" tooSmall="True" monospace="0.0">Num. Chars Limit</doubt><figure caption="Figure 6: Effect of increasing Ed1/Ed2 char limits on accuracy"></figure></subsection></section><section number="5" title="Conclusion"><p>In this work, we present a finite state automata based spelling errors detection and correction method. The new method avoids calculating the edit dis­tances at all steps of the correction process. It also avoids building a Levenshtein-automata for each in­put word. The method is multilingual and may work for any language for which we have an electronic dictionary, and a language model to assign probabil­ity to word sequences. The preliminary experimen­tal results show that the new method achieves good performance for both correction time and accuracy. The experiments done in this paper can be extended in several directions. First, there is still much room for optimizing the code to make it faster especially the FST composition process. Second, we can allow further editing operations like splitting and merging.</p></section><references><p>Francois De Bertrand De Beuvron and Philippe Trigano. 1995. Hierarchically coded lexicon with variants. <i>In­ternational Journal of Pattern Recognition and Artifi­cial Intelligence, </i>9:145-165.</p><p>Andrew Golding and Dan Roth. 1999. A winnow-based approach to context-sensitive spelling correction. <i>Ma­chine learning, </i>34:107-130.</p><p>Graeme Hirst and Alexander Budanitsky. 2005. Cor­recting real-word spelling errors by restoring lexical cohesion. <i>Natural Language Engineering, </i>11:87-111.</p><p>J.E. Hopcroft and J.D. Ullman. 1979. Introduction to au­tomata theory, languages, and computation. Reading, Massachusetts: Addison-Wesley.</p><p>Karen Kukich. 1992. Techniques for automatically cor­recting words in text. <i>ACM Computing Surveys, </i>pages 377-439.</p><p>V.I. Levenshtein. 1966. Binary codes capable of correct­ing deletions, insertions, and reversals. <i>Soviet Physics - Doklady.</i></p><p>Kemal Oflazer. 1996. Error-tolerant finite-state recog­nition with applications to morphological analysis and spelling correction.   <i>Computational Linguistics,</i> 22:73-89.</p><p>Christoph Ringlstetter, Max Hadersbeck, Klaus U. Schulz, and Stoyan Mihov. 2007. Text correction using domain dependent bigram models from web crawls. In <i>Proceedings ofthe International Joint Con­ference on Artificial Intelligence (IJCAI-2007) Work­shop on Analytics for Noisy Unstructured Text Data.</i></p><p>Emmanuel Roche and Yves Schabes. 1995. Determinis­tic part-of-speech tagging with finite-state transducers.</p><p><i>Computational Linguistics, </i>2:227253.</p><p>Emmanuel Roche and Yves Shabes. 1997. Finite-state language processing. Cambridge, MA, USA: MIT Press.</p><p>Klaus Schulz and Stoyan Mihov. 2002. Fast string cor­rection with levenshtein-automata. <i>International Jour­nal ofDocument Analysis and Recognition (IJDAR),</i> 5:67-85.</p><p>R.A. Wagner and M.Fisher. 1974. The string-to-string correction problem. <i>Journal ofthe ACM.</i></p><p>Justin Zobel and Philip Dart. 1995. Finding approximate matches in large lexicons. <i>Software Practice and Ex­perience, </i>25:331-345.</p></references></body></article>