Spelling corrector can be handy where you need to post process outputs of an OCR(Optical Character Recognition), STT(Speech to text).
- PySymSpell - pure Python port of SymSpell.
- BeautifulSoap
pip install -r requirements.txt
from spell_corrector import lookup
suggestions = lookup('አሽናቆት')
suggestions[0].term
>> 'አድናቆት'
The function calculates the number of edit [ insertion, update, delete ] needed to correct a word to another
from spell_corrector import calculate_distance
calculate_distance('አክብሮትና', 'አክብሮት')
>> 1
The crawler.py
script crawls around 1 million frequently used Amharic words on the Web.
python crawler.py