提供文本识别、智能鉴黄、敏感词过滤、涉政检测等服务,
可部署至「本地服务器」或「专有云服务器」,保障数据私密性,提供一键启动软件部署包私有化。
高性能、低延迟、永久可用、数据保密。
1.下载svc文件夹到服务器,运行
[root@localhost svc]# ls
blacklist.txt config.ini whitelist.txt wordscheck
[root@localhost svc]# ./wordscheck
2.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"
}]
}
config.ini 配置文件
blacklist.txt、whitelist.txt 黑名单/白名单文件
Windows、MacOs部署基本相同
Windows运行文件wordscheck_win.exe
MacOs运行文件wordscheck_mac
代码示例目录example/http/
代码示例目录example/rpc/
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有