{"id":25406193,"url":"https://github.com/bosnzt/wordscheck","last_synced_at":"2025-10-31T02:30:25.689Z","repository":{"id":153308432,"uuid":"592200063","full_name":"bosnzt/wordscheck","owner":"bosnzt","description":"敏感词检测，违禁词过滤，敏感词过滤，敏感词库，一键启动，本地运行，私有化部署，1分钟接入完成，开箱即用，支持docker，支持在线api","archived":false,"fork":false,"pushed_at":"2024-11-16T02:38:16.000Z","size":373263,"stargazers_count":482,"open_issues_count":1,"forks_count":67,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-11-16T03:24:44.256Z","etag":null,"topics":["golang","java","javascript","nodejs","php","python","sensitive-words-filter","text-filter","textfilter","word-filter","wordfilter"],"latest_commit_sha":null,"homepage":"https://www.wordscheck.com","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bosnzt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-23T07:19:20.000Z","updated_at":"2024-11-16T02:38:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba9f72a2-94e3-45af-a4ed-7dca679af655","html_url":"https://github.com/bosnzt/wordscheck","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bosnzt%2Fwordscheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bosnzt%2Fwordscheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bosnzt%2Fwordscheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bosnzt%2Fwordscheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bosnzt","download_url":"https://codeload.github.com/bosnzt/wordscheck/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239088390,"owners_count":19579435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","java","javascript","nodejs","php","python","sensitive-words-filter","text-filter","textfilter","word-filter","wordfilter"],"created_at":"2025-02-16T05:08:14.134Z","updated_at":"2025-10-31T02:30:25.684Z","avatar_url":"https://github.com/bosnzt.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# 敏感词检测API - 私有化部署\r\n提供文本识别、智能鉴黄、涉政检测、谩骂等等 敏感词检测过滤服务，\r\n\r\n可部署至本地或云服务器，一键启动，直接服务器本地检测，低网络延迟、内容隐私。\r\n\r\n『开箱即用的检测服务』、不限调用次数。\r\n\r\n\r\n## 简介\r\n+ 敏感词库从大量样本库整理出来，基于NLP算法检测\r\n+ 支持Windows、MacOs、Linux等64位主流系统\r\n+ 可以部署在本地，或部署到阿里云、腾讯云、亚马逊云、谷歌云等云服务器\r\n+ 通过下载部署包，即可一键启动私有化的\"敏感词检测 API服务\"\r\n+ 支持自动云更新最新词库\r\n+ 支持http json方式或gRPC方式查询\r\n+ 单服务参考查询效率30000次/分钟，同时支持并行服务\r\n+ 支持自定义添加白名单/黑名单词条\r\n+ 服务运行内存100M左右，非常轻便\r\n\r\n## 最新版本下载\r\n[Releases下载]\r\n\r\n\r\n## 应用场景\r\n+ AI智能问答、评论留言、聊天消息、直播弹幕、商品详情 等内容合规检测过滤\r\n+ 应用提审上架、主管部门审核、云平台内容巡查 等监管需要\r\n+ 境内外 产品内容合规需要，可部署到中国香港、新加坡、日本、美国、韩国等\r\n\r\n\r\n## 演示地址\r\n[坚果墙在线敏感词检测]\r\n\r\n\r\n## 快速接入文档\r\n[文档地址]\r\n\r\n##  敏感词分类\r\n+ 色情：色情传播、x用品、av女优、色情描写、x器官、x行为、色情行为\r\n+ 政治：领导人、官员、政党、国家机关、反动言论、邪教、分裂组织、宗教\r\n+ 暴恐违禁：枪支弹药、警用军用、涉黑涉恶、非法传教、毒品、假钞、刑事行为、违禁品\r\n+ 谩骂：脏话、谩骂、地域攻击\r\n+ 广告：冒充系统、违法买卖、金融广告、赌博、网络广告、广告词\r\n+ 不良价值观：劣迹艺人、负面文化\r\n\r\n##  部署(Linux环境示例)\r\n1. 下载*svc*文件夹到服务器，运行\r\n```shell\r\n[root@localhost svc]# ls\r\nblacklist.txt  config.ini  whitelist.txt  wordscheck\r\n[root@localhost svc]# ./wordscheck\r\n```\r\n\r\n2. curl测试下服务\r\n```shell\r\n[root@localhost ~]# curl -H \"Accept: application/json\" -H \"Content-type: application/json\" -X POST -d \"{\\\"content\\\":\\\"他在传播艳情内容\\\"}\" http://localhost:8080/wordscheck\r\n```\r\n\r\ncurl结果\r\n```json\r\n{\r\n\t\"code\": \"0\",\r\n\t\"msg\": \"检测成功\",\r\n\t\"return_str\": \"他在传播**内容\",\r\n\t\"word_list\": [{\r\n\t\t\"keyword\": \"艳情\",\r\n\t\t\"category\": \"色情\",\r\n\t\t\"position\": \"4-5\",\r\n\t\t\"level\": \"高\"\r\n\t}]\r\n}\r\n```\r\n\r\nconfig.ini  配置文件\r\n\r\nWindows、MacOs部署基本相同\r\n\r\n| **运行文件**  | **环境说明**  |\r\n| ------------ | ------------ |\r\n| wordscheck | Linux系统，常用的服务器x86_64、amd64 |\r\n| wordscheck_arm64 | Linux系统，aarch64、arm64的服务器 |\r\n| wordscheck_win.exe | Windows系统 |\r\n| wordscheck_mac | MacOs系统，M芯片的电脑 |\r\n\r\n##  http方式查询\r\n代码示例目录`example/http/`\r\n\r\n##  rpc方式查询\r\n代码示例目录`example/rpc/`\r\n\r\n### 如何调整服务中的敏感词？\r\nblacklist.txt：黑名单，追加新的敏感词到检测服务中\r\n\r\nwhitelist.txt：白名单，从检测服务中排除某些敏感词\r\n\r\n##  Docker方式部署\r\n修改Dockerfile，调整系统环境、执行文件；配置config.ini\r\n\r\n通过Dockerfile，自行build镜像，自己定个镜像名字\r\n\r\n`docker build -t 镜像名字 .`\r\n\r\n运行容器\r\n\r\n`docker run -p 8080:8080 -d 镜像名字`\r\n\r\n\r\n\r\n[坚果墙在线敏感词检测]:https://www.wordscheck.com\r\n[文档地址]:https://doc.wordscheck.com/docs/docs\r\n[Releases下载]:https://github.com/bosnzt/wordscheck/releases\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbosnzt%2Fwordscheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbosnzt%2Fwordscheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbosnzt%2Fwordscheck/lists"}