Skip to content

Amharic Spelling Corrector based on SymSpell - Spelling corrector which is 1 million times faster through Symmetric Delete spelling correction algorithm

License

Notifications You must be signed in to change notification settings

yididiyan/amharic_spell_corrector

Repository files navigation

Amharic Spelling Corrector

Spelling corrector can be handy where you need to post process outputs of an OCR(Optical Character Recognition), STT(Speech to text).

Dependencies

  • PySymSpell - pure Python port of SymSpell.
  • BeautifulSoap

Installation

pip install -r requirements.txt

Usage

Spelling correctortion

from spell_corrector import lookup
suggestions = lookup('አሽናቆት')
suggestions[0].term
>> 'አድናቆት'

Edit Distance Calculation

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

Crawling More Words

The crawler.py script crawls around 1 million frequently used Amharic words on the Web.

python crawler.py

About

Amharic Spelling Corrector based on SymSpell - Spelling corrector which is 1 million times faster through Symmetric Delete spelling correction algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages