Skip to content

Commit

Permalink
提高the触发概率
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Mar 31, 2023
1 parent f1ea658 commit 76dbf5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/thesaurus/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const (

func match(l []string, seg *jieba.Segmenter) zero.Rule {
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()
}, l...)(ctx)
}
Expand Down

0 comments on commit 76dbf5a

Please sign in to comment.