From 8ee187f5bea840cf14effbaa4d138818ef24e682 Mon Sep 17 00:00:00 2001 From: RookieCuzz <85008507+RookieCuzz@users.noreply.github.com> Date: Wed, 8 Oct 2025 10:52:23 +0800 Subject: [PATCH] =?UTF-8?q?update:=20dev=E5=88=86=E6=94=AF=E4=BB=8B?= =?UTF-8?q?=E7=BB=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 20e8f4e..def603b 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,13 @@ git clone https://github.com/Konsheng/Sensitive-lexicon.git Star History Chart + +## 敏感词检测服务(Go) + +- 提供基于 Go 的敏感词检测服务,支持模糊匹配与词库热加载。 +- 服务代码路径:`./cmd/server`(包含 REST API:`/detect`、`/contains`、`/reload`、`/health`)。 +- 分支导航: + - `dev` 开发版(服务与工程化更新更频繁):https://github.com/Konsheng/Sensitive-lexicon/tree/dev +- Docker 运行示例: + - `docker run -p 8080:8080 ghcr.io/<你的用户名>/sensitive-lexicon-server:latest` + - 环境变量:`PORT`, `LEXICON_DIR`, `FUZZY_MIN_NGRAM`, `FUZZY_MAX_NGRAM`, `FUZZY_MAX_DISTANCE`