Automatic spelling correction

Aspose.OCR for Python via .NET can automatically replace commonly misspelled words in recognition results with the correct ones. This functionality supports the following languages:

Value Language
SpellCheckLanguage.CZE Czech
SpellCheckLanguage.DAN Danish
SpellCheckLanguage.DEU German
SpellCheckLanguage.DUM Dutch
SpellCheckLanguage.ENG English
SpellCheckLanguage.EST Estonian
SpellCheckLanguage.FIN Finnish
SpellCheckLanguage.FRA French
SpellCheckLanguage.ITA Italian
SpellCheckLanguage.LAV Latvian
SpellCheckLanguage.LIT Lithuanian
SpellCheckLanguage.POL Polish
SpellCheckLanguage.POR Portuguese
SpellCheckLanguage.RUM Romanian
SpellCheckLanguage.SLK Slovak
SpellCheckLanguage.SLV Slovene
SpellCheckLanguage.SPA Spanish
SpellCheckLanguage.SWE Swedish

Spell checking is done on the fly, either on output (get_spell_check_corrected_text() method) or on saving the results:

Spelling correction of any text

You can also correct misspelled words in any text string using correct_spelling() method of AsposeOcr class:

# Instantiate Aspose.OCR API
api = AsposeOcr()
# Correct spelling in string
text = "Die schönste Jungfrau sitzet dort oben wunderbar"
correctedText = api.correct_spelling(text, SpellCheckLanguage.DEU)
print(correctedText)