OCR spelling mistakes
What is the recommended practice for OCR typos that come from say poor kerning? Examples below.
mformation --> information wntmg --> writing
The problem I have is that SymSpell lookup_compound seems to suggest other words such as "formation" or "with a" instead of the correct terms.
Apologies if this is not the right place to ask.
Symspell takes two factors into account when ranking correction candidates:
- the Damerau-Levenshtein edit distance between the misspelled term and the correction candidates (smaller edit distance wins)
- the term frequency of the correction candidate (the most frequent word wins)
Symspell does not take into account:
- the context (neigbouring words)
- how close on the keyboard the misspelled and correct characters are
- how phonetically close the misspelled and correct characters are
- how optically close the misspelled and correct characters are (e.g. for OCR)
Using those factors with weighted Damerau-Levenshtein edit distance for the ranking of correction candidates could significantly improve correction quality. But the purpose of SymSpell was just to demonstrate the symmetric-delete algorithm and its speed advantage, but not to provide a turn-key spelling correction. But there is a SymSpell implementation with weighted Damerau-Levenshtein edit distance / keyboard-distance which probably could be used to improve correction quality for OCR
Thank you! I guess I was hoping someone already made a “low tech” solution in the form of a dictionary for all the kerning and ligature issues.