获取干预词条清单。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
opensearch:DescribeInterventionDictionary |
*InterventionDictionary
|
无 | 无 |
请求语法
GET /v4/openapi/intervention-dictionaries/{name}/entries HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| name |
string |
是 |
干预词典名称 |
my_dict |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| word |
string |
否 |
词条 |
测试 |
| pageNumber |
integer |
否 |
页码,默认 pageNumber=1 |
1 |
| pageSize |
integer |
否 |
每页返回数目,默认 pageSize=10 |
10 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| totalCount |
integer |
总条数 |
8 |
| requestId |
string |
请求 ID |
516A02B7-2167-8D92-12D0-B639A2A0F3C5 |
| result |
array<object> |
干预词条详情 |
|
|
array<object> |
|||
| cmd |
string |
操作命令
|
add |
| created |
integer |
创建时间戳 |
1536690285 |
| word |
string |
词条 |
\u8fc7\u513f |
| relevance |
object |
干预内容 键为类目预测 ID,值为相关度(0:不相关;1:略相关;2:相关) 例:{“2”:1,”100”:0} |
{ "100": "0", "200": "2" } |
| status |
string |
状态
|
ACTIVE |
| updated |
integer |
更新时间戳 |
1537348987 |
| tokens |
array<object> |
词权重内容 |
|
|
object |
|||
| tag |
string |
识别结果的英文名
|
category |
| token |
string |
实体词 |
本 |
| order |
integer |
序号 |
1 |
| tagLabel |
string |
识别结果的中文名,同上 |
品类 |
示例
正常返回示例
JSON格式
{
"totalCount": 8,
"requestId": "516A02B7-2167-8D92-12D0-B639A2A0F3C5",
"result": [
{
"cmd": "add",
"created": 1536690285,
"word": "\\u8fc7\\u513f",
"relevance": {
"100": "0",
"200": "2"
},
"status": "ACTIVE",
"updated": 1537348987,
"tokens": [
{
"tag": "category",
"token": "本",
"order": 1,
"tagLabel": "品类"
}
]
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。