检测拼写错误的单词 [英] Detecting misspelled words

查看:155
本文介绍了检测拼写错误的单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有机场名称的列表,我的用户有可能进入一个机场名称来选择它获得进一步的处理。

I have a list of airport names and my users have the possibility to enter one airport name to select it for futher processing.

你会如何处理拼错的名称和present的建议清单?

How would you handle misspelled names and present a list of suggestions?

推荐答案

查找莱文斯坦距离来匹配正确的名称对一个给定的用户输入。

Look up Levenshtein distances to match a correct name against a given user input.

这篇关于检测拼写错误的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆