更新时间:2023-09-27 GMT+08:00
分享

/chatbot/rest/tuc/v1/nlp/identify

接口功能

语种识别接口。

请求入参

表1

参数

类型

是否必选

描述

text

String

必选

客户输入的文本信息

请求出参

参数

类型

描述

returnCode

String

返回码

returnMsg

String

返回信息

params

LangIdOutputParams

语种识别结果

单个LangIdOutputParams的定义如下:

参数

类型

描述

language

String

语种,参考取值:

zh_CN

en_US

(以下为小语种,需要配套下载小语种识别的模型)

ar

es_ES

pt_BR

th_TH

fr_FR

score

float

置信度

请求消息样例

{
    "callId": "${businessReqId}",
    "provId": "fangyg",
    "busiType": "0",
    "params": {
        "text": "${text}"
    }
}

callId、provId和busiType为系统自动生成,无需关注。

分享:

    相关文档

    相关产品