vi3k6i5 / flashtext

Extract Keywords from sentence or Replace keywords in sentences.
MIT License
5.57k stars 599 forks source link

Handle spell error idea #75

Open ebuildy opened 5 years ago

ebuildy commented 5 years ago

I am wondering if it's possible to handle misspell errors.

Words to match: "skype" Sentence: "hello, do you have skpe ?"

My current implementation is to generate all possible candidates, but this means lot of words. I understand your library use a tree, maybe we could implement a kind of "possible error" or multiple paths?

remiadon commented 5 years ago

Hi, I think this is the same issue as this one