[BangPypers] Spell Checker Python

JAGANADH G jaganadhg at gmail.com
Thu Jun 30 17:31:02 CEST 2011


On Thu, Jun 30, 2011 at 8:53 PM, Gora Mohanty <gora at mimirtech.com> wrote:

> On Thu, Jun 30, 2011 at 6:59 PM, Puneet Aggarwal <look4puneet at gmail.com>
> wrote:
> > Hi Gora,
> >
> > Thanks for the quick reply. Basically I am looking for spell correction
> in
> > the sense if someone does a mistake in spelling.
> >
> > Let say someone want to search "restaurant" and types the spelling wrong
> as
> > resturant or something. So that we can help him correct it.
> [...]
>
> In that case, you definitely want a Python binding around aspell. Several
> people have already suggested possibilities here. Try Enchant before
> other things, as it allows one the possibility of using backends other
> than aspell, such as hunspell, though at least last when I looked at it,
> aspell was better, and supported better.
>
>

Enchant + edit distance will solve the problem . You can use
theedit_distance from nltk.metrocs
-- 
**********************************
JAGANADH G
http://jaganadhg.freeflux.net/blog
*ILUGCBE*
http://ilugcbe.techstud.org


More information about the BangPypers mailing list