【发布时间】:2017-02-01 17:57:40
【问题描述】:
使用来自 GoogleCloudPlatform\python-docs-samples-master\python-docs-samples-master\translate\cloud-client 的 Python 示例。当我尝试使用 translate-text-with-model 进行翻译时,出现错误
python sn-ps.py translate-text-with-model es "你好吗奶奶" google.cloud.exceptions.BadRequest: 400 收到无效的 JSON 负载。未知名称“模型”:无法绑定“nmt”。在请求消息中找不到字段“模型”。 (GET https://translation.googleapis.com/language/translate/v2?target=es&q=How+are+you+Grandma&model=nmt)
谁能指出我做错了什么?谢谢。
【问题讨论】: