降低simi触发概率

This commit is contained in:
源文雨 2023-03-25 22:09:27 +08:00
parent d66dd9b7fa
commit 6ea50cf8b7

View File

@ -146,7 +146,7 @@ const (
func match(l []string, seg *jieba.Segmenter) zero.Rule {
return func(ctx *zero.Ctx) bool {
return ctxext.JiebaSimilarity(0.5, seg, func(ctx *zero.Ctx) string {
return ctxext.JiebaSimilarity(0.8, seg, func(ctx *zero.Ctx) string {
return ctx.ExtractPlainText()
}, l...)(ctx)
}