/chatbot/rest/tuc/v1/nlp/identify
Function
Language identification interface.
Input Parameters
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot