提高the触发概率

This commit is contained in:
源文雨 2023-03-31 15:54:28 +08:00
parent f1ea658c7d
commit 76dbf5a4b6

View File

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