Google Translate get synonyms and examples

2019-05-10 19:07发布

问题:

Can I access word's synonyms and examples along with the translation itself, when using Google Translate API?

I checked out docs but I don't see anything like that.

回答1:

No, you cannot get the synonyms and examples along with the translated text.As currently they have only 3 methods in the Translate API.The 3 methods are detections.list, languages.list and translations.list. So i think it would be great if you make a feature request for this API at PIT of AppEngine.



回答2:

Pearson released their free API which includes examples, part of speech, and synonyms. Check it out: 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": [