自然语言处理 NLP-文本翻译:响应示例

时间:2024-05-14 17:23:29

响应示例

  • 成功响应示例
    {
        "src_text": "欢迎使用机器翻译服务",
        "translated_text": "Welcome to use machine translation services",
        "from": "zh",
        "to": "en"
    }
  • 失败响应示例
    {
        "error_code": "NLP.0101",
        "error_msg": "Authentication failed. Verify the token."
    }
support.huaweicloud.com/api-nlp/nlp_03_0024.html