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

一曲冷凌霜 提交于 2019-12-21 01:20:15

问题


I have been searching all over the Internet, but did not find that exact API.

I'd like to use their Did You mean feature for my own website.


回答1:


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.




回答2:


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'



回答3:


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.




回答4:


Here is one in python that get the didyoumean results



来源:https://stackoverflow.com/questions/1691275/does-google-allow-other-people-to-use-their-did-you-mean-api

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