使用 Google Translate API 时,我可以访问单词的同义词和示例以及翻译本身吗?
我查看了文档,但没有看到类似的内容。
使用 Google Translate API 时,我可以访问单词的同义词和示例以及翻译本身吗?
我查看了文档,但没有看到类似的内容。
不,您无法获得同义词和示例以及翻译文本。目前它们在 Translate API 中只有 3 个方法。这 3 个方法是 detections.list、languages.list 和 translations.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": [