【问题标题】:Google traslate API request sample for did you mean你的意思是谷歌翻译 API 请求示例
【发布时间】:2019-07-27 06:52:24
【问题描述】:

当我选择一种输入语言并输入一些单词(如其发音)时。它提供了“您的意思是”选项。如何从 Google 云翻译 API 获得此选项作为响应?

请看下图。

https://i.stack.imgur.com/I29AP.png

【问题讨论】:

标签: google-api google-translate google-translator-toolkit


【解决方案1】:

不适用于 Google 翻译,但您可以使用 SerpApi 拼写检查 API。它提取谷歌“你的意思是?”来自常规搜索。

JSON 应该以这种方式构建。假设搜索“咖啡”:

  "search_information":
    { 
      ...
      "query_displayed": "coffeee",
      "spelling_fix": "coffee",
      "showing_results_for": "coffee"
    },
  ...

文档:https://serpapi.com/spell-check

【讨论】:

    猜你喜欢
    • 2018-02-19
    • 2016-05-10
    • 1970-01-01
    • 2014-12-30
    • 1970-01-01
    • 2011-12-26
    • 2010-10-10
    相关资源
    最近更新 更多