Find closest match for misspelled city names?

前端 未结 3 703
醉酒成梦
醉酒成梦 2020-12-21 00:15

I have a list of cities that have numerous incorrect spelling for the same city. One city is misspelled 18 times! I am trying to clean this up but its taking hours. Is th

3条回答
  •  盖世英雄少女心
    2020-12-21 00:43

    1. Read about Levenshtein distance: http://en.wikipedia.org/wiki/Levenshtein_distance.

    2. Find an implementation or write your own. It's not that complex.

    3. Use it to locate near-miss spelling errors.

提交回复
热议问题