【问题标题】:Google Translate get synonyms and examples谷歌翻译获取同义词和例子
【发布时间】:2015-03-08 12:03:23
【问题描述】:

在使用 Google Translate API 时,我可以访问单词的同义词和示例以及翻译本身吗?

我查看了docs,但没有看到类似的内容。

【问题讨论】:

  • 从那以后你有没有找到解决办法?我试图手动加载谷歌翻译页面以解析它。但不幸的是,我什至无法加载它。我在这里完成:stackoverflow.com/questions/29274481/…
  • @János 目前没有解决方案,也尝试加载页面,但它非常不自然,所以我最好等待谷歌改进他们的 API。

标签: google-app-engine rest google-translate google-translator-toolkit


【解决方案1】:

Pearson 发布了他们的免费 API,其中包括示例、词性和同义词。看看吧:http://developer.pearson.com/apis/dictionaries

http://api.pearson.com/v2/dictionaries/lase%20/entries?headword=hola

{
  "status": 200,
  "offset": 0,
  "limit": 10,
  "count": 1,
  "total": 1,
  "url": "/v2/dictionaries/lase /entries?headword=hola",
  "results": [
    {
      "datasets": [
        "lase",
        "dictionary"
      ],
      "headword": "hola",
      "id": "ct59rx0q97",
      "part_of_speech": "interjection",
      "senses": [

【讨论】:

  • 不幸的是,Pearson 将暂停他们的 API:developer.pearson.com/apis/dictionaries
  • @ThilawFabrice 为什么?不!!这就是为什么很难依赖这些服务的原因。我最终只是下载并切片了我自己的字典。我很想接触西班牙文字典!字典。它们非常全面。
【解决方案2】:

不,您无法获取同义词和示例以及翻译文本。目前它们在 Translate API 中只有 3 个方法。这 3 个方法是 detections.list、languages.list 和 translations.list。因此,我认为如果您在 AppEngine 的PIT 对此 API 提出功能请求会很棒。

【讨论】:

猜你喜欢
  • 2023-03-09
  • 2018-08-01
  • 2016-01-11
  • 1970-01-01
  • 1970-01-01
  • 2018-09-25
  • 1970-01-01
  • 1970-01-01
  • 2017-01-14
相关资源
最近更新 更多