From 76dbf5a4b690713d6ed6692efbc264567a74338e 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: Fri, 31 Mar 2023 15:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98the=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 190eb013..5f011f9c 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.8, seg, func(ctx *zero.Ctx) string { + return ctxext.JiebaSimilarity(0.66, seg, func(ctx *zero.Ctx) string { return ctx.ExtractPlainText() }, l...)(ctx) }