Giter Site home page Giter Site logo

yididiyan / amharic_spell_corrector Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 10.0 2.9 MB

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

License: MIT License

Python 100.00%
amharic-corpus amharic-words crawling symspell spelling-correction

amharic_spell_corrector's Introduction

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

amharic_spell_corrector's People

Contributors

samasend avatar yididiyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

amharic_spell_corrector's Issues

Some un-spaced words in the database

First of all thank you for your crawler and the database you have made available to the public. Just one quick thing I noticed while I was working with the data. Some words aren't separated by space and still hold meanings from the site which they were scrapped from like
"ግዜሳይረፍድይህንንየቁርጥቀንኢትዮጵያዊለመታደግበያለንበትበጋራእንረባረብ
የየመንኤምባሲዎችንበያሉበትበተቃውሞማጨናነቅናእንቅልፍመንሳትእንዲሁምአለምአቀፍጫናማድረግያስፈልጋል
የመንአቶአንዳርጋቸውንለወያኔአሳልፋእንዳትሰጥናያለምንምቅድመሁኔታእንድትለቅሁሉምነጻነትናፋቂኢትዮጵያዊሁሉበጋራጥረትሊያደርግይገባል
ማሰርናማንገገላታትአለምአቀፍህግንየሚጥስህገወጥድርጊትነው
የአንባገነኑየህወሃትስርወመንግስትተቃዋሚዎችንማንምአገርበምንምአይነትሁኔታማፈን
የመንአቶአንዳርጋቸውጽጌንማገቷሌላአደገኛናበጣምአሳሳቢክስተትነው
"
I thought you might be interested to know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.