Does Google allow other people to use their “Did you mean” API?

↘锁芯ラ 提交于 2019-12-03 06:44:01
Jason

doSpellingSuggestion I believe is the api call. There is a good example here

Update
As people have noted, the link is broken. Here is a Wayback Machine's archived copy.

Pygoogle has an api call for that

http://pygoogle.sourceforge.net/dist/doc/public/google-module.html#doSpellingSuggestion

>>> import google
>>> google.LICENSE_KEY = '...'
>>> google.doSpellingSuggestion('pithon')
'python'

There's been a great Python example going around for awhile showing exactly how to implement this (in only 21 lines of code!): http://norvig.com/spell-correct.html It was shown at the Stackoverflow DevDays in Toronto, and I believe at some of the other locations.

Here is one in python that get the didyoumean results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!