2 ms·
I love it. Spell checking was pretty relevant to some of my work recently and I needed to correct heavily typo'd address text from Chicago parking ticket data.
by bpchaps 10y ago
I love it. Spell checking was pretty relevant to some of my work recently and I needed to correct heavily typo'd address text from Chicago parking ticket data. It used difflib to recursively find similarly typo'd address until it finds a matching address within a list of correct addresses. Definitely a lot more to polish, but I'm kinda proud of the naive approach.
https://github.com/red-bin/tyop_fixer https://github.com/red-bin/tyop_fixer
coumbia,columbia,0.933333333333
argy,argyle,0.8
menomee,menomonee,0.875
newladn,newland,0.857142857143
boulevard way,boulevard,0.818181818182
sherwn,sherwin,0.923076923077
lawrencec,lawrence,0.941176470588