[英]Does Google allow other people to use their “Did you mean” API?
I have been searching all over the Internet, but did not find that exact API. 我一直在互联网上搜索,但没有找到确切的API。
I'd like to use their Did You mean feature for my own website. 我想在我自己的网站上使用他们的“你的意思”功能。
Pygoogle has an api call for that Pygoogle有一个API呼叫
http://pygoogle.sourceforge.net/dist/doc/public/google-module.html#doSpellingSuggestion http://pygoogle.sourceforge.net/dist/doc/public/google-module.html#doSpellingSuggestion
>>> import google
>>> google.LICENSE_KEY = '...'
>>> google.doSpellingSuggestion('pithon')
'python'
doSpellingSuggestion I believe is the api call. doSpellingSuggestion我相信是api电话。 There is a good example here
有一个很好的例子在这里
Update 更新
As people have noted, the link is broken. 正如人们所指出的,这种联系已经破裂。 Here is a Wayback Machine's archived copy .
这是Wayback Machine的归档副本 。
这是python中的一个获得didyoumean结果
有一个很棒的Python示例,有一段时间可以显示如何实现它(只有21行代码!): http ://norvig.com/spell-correct.html它在多伦多的Stackoverflow DevDays上展示,我相信其他一些地方。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.