From 6ea50cf8b70348f7690e8c0e50e618c9cf69c00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 25 Mar 2023 22:09:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8Esimi=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=A6=82=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/thesaurus/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/thesaurus/chat.go b/plugin/thesaurus/chat.go index 3da62800..190eb013 100644 --- a/plugin/thesaurus/chat.go +++ b/plugin/thesaurus/chat.go @@ -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) }