Skip to content

Commit 6ea50cf

Browse files
committed
降低simi触发概率
1 parent d66dd9b commit 6ea50cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/thesaurus/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ const (
146146

147147
func match(l []string, seg *jieba.Segmenter) zero.Rule {
148148
return func(ctx *zero.Ctx) bool {
149-
return ctxext.JiebaSimilarity(0.5, seg, func(ctx *zero.Ctx) string {
149+
return ctxext.JiebaSimilarity(0.8, seg, func(ctx *zero.Ctx) string {
150150
return ctx.ExtractPlainText()
151151
}, l...)(ctx)
152152
}

0 commit comments

Comments
 (0)