gpt4 book ai didi

google-api - 谷歌输入工具 "API"——可以使用吗?

转载 作者:行者123 更新时间:2023-12-03 00:28:19 24 4
gpt4 key购买 nike

我注意到 Google 通过以下网址接受任何语言的音译和 IME 请求:

https://inputtools.google.com/request?text=$&itc=$&num=$\
&cp=0&cs=1&ie=utf-8&oe=utf-8&app=test

其中 $ 是下面的变量,适用于任何语言和文本。

例如,法语 ( try it ):

var text = "ca me plait",
itc = "fr-t-i0-und",
num = 10;
// Result:
[
"SUCCESS",
[
[
"ca me plait",
[
"ça me plaît"
]
]
]
]

或者,普通话 ( try it ):

var text = "shide",
itc = "zh-t-i0-pinyin",
num = 5;
// Result:
[
"SUCCESS",
[
[
"shide",
[
"使得",
"似的",
"是的",
"实德",
"似地"
],
[],
{
"annotation": [
"shi de",
"shi de",
"shi de",
"shi de",
"shi de"
]
}
]
]
]

所有语言都可以工作并返回很好的建议。问题是我在网络上任何地方都找不到该文档,尽管它显然看起来像一个 API。有谁知道是否有官方 Google 客户端,或者他们是否可以接受原始的、未经身份验证的请求?

它可能被像jQuery.chineseIME.js这样的插件非正式地使用。 ,但我希望能得到任何官方使用信息。

最佳答案

无论如何。我创建了自己的插件,将其用于中文,并且可以轻松扩展:https://bitbucket.org/purohit/jquery.intlkeyboard.js .

关于google-api - 谷歌输入工具 "API"——可以使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18329040/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com