On Thu, Jun 30, 2011 at 8:53 PM, Gora Mohanty <g...@mimirtech.com> wrote:
> On Thu, Jun 30, 2011 at 6:59 PM, Puneet Aggarwal <look4pun...@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 _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers