查看nlp词典
更新时间:2025-04-01
请求URI
POST /api/bes/cluster/nlp_dict/display
请求头参数
参数名 | 类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
x-Region | String | 否 | 区域 | bj |
请求体参数
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
clusterId | String | 是 | 集群id | 11111111 |
响应体参数
响应体字段数据结构说明
参数 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
success | Boolean | 是否成功 | true |
status | String | 状态码 | 200 |
result | Result | 请求结果 |
Result字段数据结构说明
参数 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
operationType | String | upload_dict(上传词典文件), text(输入文本) | upload_dict |
separator | String | 上下文分隔符规则 | tab |
fileName | String | 若使用上传词典的方式,则此字段有值,代表上传词典的名称 | test.txt |
dictContent | String | 若使用输入文本的方式,则此字段有值,代表详细词典内容 | |
请求示例
POST /api/bes/cluster/nlp_dict/display
<公共请求头>
x-Region: bj
{
"clusterId": "1111111"
}
响应示例
HTTP/1.1 200 OK
<公共响应头>
{
"success": true,
"status": 200,
"result": {
"operationType": "upload_dict",
"separator": "tab",
"fileName": "test.txt",
"dictContent": null
}
}
错误码
请参考通用错误码