{"id":15375289,"url":"https://github.com/sy-records/baidu-textcensor","last_synced_at":"2025-07-21T04:06:25.525Z","repository":{"id":57063412,"uuid":"232267658","full_name":"sy-records/baidu-textcensor","owner":"sy-records","description":"📄百度文本内容审核","archived":false,"fork":false,"pushed_at":"2020-01-22T02:09:43.000Z","size":25,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-19T11:35:19.155Z","etag":null,"topics":["php","textcensor"],"latest_commit_sha":null,"homepage":"https://ai.baidu.com/tech/textcensoring","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sy-records.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-07T07:25:32.000Z","updated_at":"2024-08-08T09:38:36.000Z","dependencies_parsed_at":"2022-08-24T14:00:41.752Z","dependency_job_id":null,"html_url":"https://github.com/sy-records/baidu-textcensor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sy-records/baidu-textcensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fbaidu-textcensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fbaidu-textcensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fbaidu-textcensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fbaidu-textcensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sy-records","download_url":"https://codeload.github.com/sy-records/baidu-textcensor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fbaidu-textcensor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266226352,"owners_count":23895692,"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":["php","textcensor"],"created_at":"2024-10-01T14:02:32.767Z","updated_at":"2025-07-21T04:06:25.501Z","avatar_url":"https://github.com/sy-records.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 百度文本内容审核\n\n[百度文本内容审核](https://ai.baidu.com/tech/textcensoring)能一站式检测文本中夹杂的色情、推广、辱骂、违禁、涉政、灌水等垃圾内容，净化网络环境，为您的应用提供更可靠的内容安全保障，运用业界领先的深度学习技术，判断一段文本内容是否符合网络发文规范，实现自动化、智能化的文本审核，大幅节省内容审核的人力成本，为您的产品体验保驾护航\n\n## 能力介绍\n\n* 文本色情：对文本中的色情行为描述、色情资源链接、低俗交友、污秽文爱等内容进行识别\n* 暴恐违禁：对暴力行为、恐怖描述、赌博、毒品、枪支弹药等违禁内容进行识别\n* 政治敏感：对文本中的敏感事件、涉政人物、散布谣言、反动宣传等内容进行识别\n* 恶意推广：对文本中带有售卖意向的软文广告，微信、QQ等个人联系方式等违规内容及变体进行识别\n* 低俗辱骂：对文本中的侮辱谩骂、人身攻击、消极宣泄等内容进行识别\n* 低质灌水：对网络社区常见的乱码、水帖、刷屏等无意义的灌水信息进行识别\n\n## 安装\n\n```bash\ncomposer require sy-records/baidu-textcensor\n```\n\n## 使用\n\n```php\n$appId = \"\";\n$apiKey = \"\";\n$secretKey = \"\";\n\n$client = new \\Luffy\\TextCensor\\Core($appId, $apiKey, $secretKey);\n$res = $client-\u003etextCensorUserDefined(\"沈唁志博客：https://qq52o.me\"); //待审核文本字符串\n\n//具体参数说明见：https://ai.baidu.com/ai-doc/ANTIPORN/Nk3h6xbb2\nvar_dump($res);\n```\n\n## 说明\n\n1. AppID、API Key、Secret Key在百度Ai控制台的 [产品服务 / 内容审核 - 应用列表](https://console.bce.baidu.com/ai/?fromai=1#/ai/antiporn/app/list) 创建应用后获取；\n2. 百度有默认审核策略，如果误杀严重，请进入 [内容审核平台创建自定义规则](https://ai.baidu.com/censoring#/strategylist) 进行修改策略；\n\n## 其他系统\n\n* WordPress 插件\n\n项目地址：https://github.com/sy-records/wp-baidu-textcensor\n\n* Typecho 插件\n\n项目地址：https://github.com/sy-records/ty-baidu-textcensor\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsy-records%2Fbaidu-textcensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsy-records%2Fbaidu-textcensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsy-records%2Fbaidu-textcensor/lists"}