【发布时间】:2010-10-11 16:59:57
【问题描述】:
how does the google did you mean algorithm work 的副本
有谁知道如何编写像 Google 的“您的意思是”这样的单词建议功能吗?特征?或者知道我在哪里可以找到代码示例。
谢谢
【问题讨论】:
标签: word spelling search-suggestion
how does the google did you mean algorithm work 的副本
有谁知道如何编写像 Google 的“您的意思是”这样的单词建议功能吗?特征?或者知道我在哪里可以找到代码示例。
谢谢
【问题讨论】:
标签: word spelling search-suggestion
Peter Norvig(Google 的研究主管)在这里有一个简单的,实际上非常有效:http://norvig.com/spell-correct.html
它是用python编写的,但翻译成其他语言相当简单(注意页面底部有一些翻译,但C#版本至少有一些错误并且效率很低,所以它会值得自己翻译成您需要的任何语言 - 这也是理解代码的好方法。
【讨论】: