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`