敏感词检测API,支持私有化部署,开箱即用,
下载到本地直接运行,直接http json查询。
下载地址
https://github.com/bosnzt/wordscheck
https://gitee.com/bosnzt/wordscheck
http://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": "高"
}]
}