违禁词检测API,支持私有化部署,开箱即用, 下载到本地直接运行,直接http json查询。
下载地址
https://github.com/bosnzt/wordscheck https://gitee.com/bosnzt/wordscheck
运行下
[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": "高"
}]
}
标签:API,私有化,json,wordscheck,违禁,curl,root,bosnzt,localhost
From: https://blog.51cto.com/u_12719174/6426712