谷歌翻译获取同义词和示例



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

我查看了文档,但我没有看到类似的东西。

不可以,您无法将同义词和示例与翻译文本一起获取。目前,他们在翻译 API 中只有 3 种方法。这3种方法是检测.list,语言.list和翻译.list。因此,我认为如果您在AppEngine的PIT上对此API提出功能请求,那就太好了。

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": [

最新更新