违规词检测
检测识别文本中出现的涉黄、暴恐、辱骂、灌水、广告法禁用词等内容,节省内容审核成本,提高效率,规避风险
- 接口地址: https://apistore.uutils.com/[私钥]/wordsCheck 获取私钥
- 请求方式: POST
- 返回格式:JSON
- 请求示例: https://apistore.uutils.com/[私钥]/wordsCheck?content=你可真垃圾竟发布艳情内容
请求参数说明:
| 名称 | 类型 | 必填 | 默认值 | 说明 |
|------|--------|----|-----|-----------------------|
| content| string | 是 | - | 需要检测的违规词,一次最多2000个字 |
返回参数说明:
| 名称 | 类型 | 默认值 | 说明 |
|------------------------------|---------|-----|-------------------------|
| code | string | - | 返回编码,SUCCESS为成功,其他为失败 |
| success | boolean | - | 返回是否成功,true为成功,false为失败 |
| message | string | - | 返回说明 |
| data.replaceResult | string | - | 替换后的结果 |
| data.sensitiveWords.keyword | string | - | 敏感词内容 |
| data.sensitiveWords.category | string | - | 敏感词类型 |
| data.sensitiveWords.position | string | - | 敏感词位置 |
| data.sensitiveWords.level | string | - | 风险等级(高风险、中风险、低风险) |
返回示例:
{
"code": "SUCCESS",
"message": "请求成功",
"success": true,
"data": {
"replaceResult": "*可真**竟发布**内容",
"sensitiveWords": [
{
"keyword": "艳情",
"category": "色情",
"position": "8-9",
"level": "高"
},
{
"keyword": "你|垃圾",
"category": "谩骂",
"position": "0-0,3-4",
"level": "低"
}
]
}
}