敏感词检测接口 - 私有化部署

unadlib

关注

阅读 21

2023-08-16

敏感词检测接口,支持私有化部署,开箱即用, 下载到本地直接运行,直接http json查询。

下载地址

https://github.com/bosnzt/wordscheck https://gitee.com/bosnzt/wordscheck https://www.wordscheck.com

运行下

[root@localhost svc]# chmod +x wordscheck
[root@localhost svc]# ./wordscheck

curl试下效果

[root@localhost ~]# curl -H Accept: application/json -H Content-type: application/json -X POST -d {\content\:\他在传播艳情内容\}  http://localhost:8080/wordscheck

curl结果

{
code: 0,
msg: 检测成功,
return_str: 他在传播**内容,
word_list: [{
keyword: 艳情,
category: 色情,
position: 4-5,
level: 高
}]
}

精彩评论(0)

0 0 举报