Updated on 2024-10-12 GMT+08:00

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

Function

Language identification interface.

Input Parameters

Table 1

Parameter

Type

Mandatory (Yes/No)

Description

text

String

Yes

Text information entered by a customer.

Output Parameters

Parameter

Type

Description

returnCode

String

Result code.

returnMsg

String

Return information.

params

LangIdOutputParams

Language recognition result.

LangIdOutputParams is described as follows.

Parameter

Type

Description

language

String

Language. The options are as follows:

zh_CN

en_US

The following are minority languages. To use these languages, you need to download the minority language recognition model.

ar

es_ES

pt_BR

th_TH

fr_FR

score

Float

Confidence.

Request Example

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

The values of callId, provId, and busiType are automatically generated by the system.