自然语言处理 NLP-文档分类:响应消息

时间:2024-01-17 15:35:04

响应消息

响应参数如表3所示。

表3 响应参数

名称

参数类型

说明

result

Array of Result object

调用成功时的返回标签列表。

调用失败时无此字段。

请参见表4

error_code

string

调用失败时的错误码。具体参见错误码

调用成功时无此字段。

error_msg

string

调用失败时的错误信息。

调用成功时无此字段。

表4 result字段数据结构说明

参数名

参数类型

说明

label

String

输入的文档标签,包括 sport(体育), anime(动漫), hospital(医院), history(历史), advertising (广告), entertainment(娱乐), religion(宗教), novel(小说), estate(地产), recruitment(招聘), education(教育), tourism(旅游), automobile(汽车), game(游戏), technology(科技), joke(笑话), health(健康), gourmet(美食), stock(股票), parenting(育儿), pornography(色情), finance(金融)

confidence

Float

标签label的置信度。0到1之间的数。

support.huaweicloud.com/api-nlp/nlp_03_0093.html