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

/chatbot/rest/tuc/v1/nlp/textClassify

Function

Text classification interface.

Input Parameters

Table 1 Request input parameters

Parameter

Type

Mandatory (Yes/No)

Description

language

String

Yes

Language. The option is zh_CN.

text

String

Yes

Recognition text.

Output Parameters

Parameter

Type

Description

results

List<TextLabel>

For details, see Table 2.

Table 2 TextLabel description

Parameter

Type

Description

label

String

Label.

probability

Double

Confidence.

Request Example

{
    "language": "${language}",
    "text": "${text}"
}