From 780b2b198d20a888eef563bb55006aafa9fe5ff1 Mon Sep 17 00:00:00 2001 From: amzxyz Date: Sat, 27 Dec 2025 16:10:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=98=E6=9B=B4=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/wanxiang_pro.schema.yaml | 12 ++++++------ wanxiang.schema.yaml | 12 ++++++------ wanxiang_t9.schema.yaml | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/custom/wanxiang_pro.schema.yaml b/custom/wanxiang_pro.schema.yaml index 815a856..7265deb 100644 --- a/custom/wanxiang_pro.schema.yaml +++ b/custom/wanxiang_pro.schema.yaml @@ -113,12 +113,12 @@ engine: grammar: language: wanxiang-lts-zh-hans - collocation_max_length: 8 #命中的最长词组 - collocation_min_length: 2 #命中的最短词组,搭配词频健全的词库时候应当最小值设为3避开2字高频词 - collocation_penalty: -10 #默认-12 对常见搭配词组施加的惩罚值。较高的负值会降低这些搭配被选中的概率,防止过于频繁地出现某些固定搭配。 - non_collocation_penalty: -17 #默认-12 对非搭配词组施加的惩罚值。较高的负值会降低非搭配词组被选中的概率,避免不合逻辑或不常见的词组组合。 - weak_collocation_penalty: -24 #默认-24 对弱搭配词组施加的惩罚值。保持默认值通常是为了有效过滤掉不太常见但仍然合理的词组组合。 - rear_penalty: -18 #默认-18 对词组中后续词语的位置施加的惩罚值。较高的负值会降低某些词语在句子后部出现的概率,防止句子结构不自然。 + collocation_max_length: 6 + collocation_min_length: 3 + collocation_penalty: -10 + non_collocation_penalty: -20 + weak_collocation_penalty: -45 + rear_penalty: -5 super_comment: # 超级注释模块,子项配置 true 开启,false 关闭 candidate_length: 1 # 候选词辅助码提醒的生效长度,0为关闭 但同时清空其它,应当使用上面开关来处理 diff --git a/wanxiang.schema.yaml b/wanxiang.schema.yaml index ba54b16..9bc69ae 100644 --- a/wanxiang.schema.yaml +++ b/wanxiang.schema.yaml @@ -109,12 +109,12 @@ engine: grammar: language: wanxiang-lts-zh-hans - collocation_max_length: 8 #命中的最长词组 - collocation_min_length: 2 #命中的最短词组,搭配词频健全的词库时候应当最小值设为3避开2字高频词 - collocation_penalty: -10 #默认-12 对常见搭配词组施加的惩罚值。较高的负值会降低这些搭配被选中的概率,防止过于频繁地出现某些固定搭配。 - non_collocation_penalty: -17 #默认-12 对非搭配词组施加的惩罚值。较高的负值会降低非搭配词组被选中的概率,避免不合逻辑或不常见的词组组合。 - weak_collocation_penalty: -24 #默认-24 对弱搭配词组施加的惩罚值。保持默认值通常是为了有效过滤掉不太常见但仍然合理的词组组合。 - rear_penalty: -18 #默认-18 对词组中后续词语的位置施加的惩罚值。较高的负值会降低某些词语在句子后部出现的概率,防止句子结构不自然。 + collocation_max_length: 6 + collocation_min_length: 3 + collocation_penalty: -10 + non_collocation_penalty: -20 + weak_collocation_penalty: -45 + rear_penalty: -5 super_comment: # 超级注释模块,子项配置 true 开启,false 关闭 candidate_length: 2 # 候选词辅助码提醒的生效长度,0为关闭 但同时清空其它,应当使用上面开关来处理 diff --git a/wanxiang_t9.schema.yaml b/wanxiang_t9.schema.yaml index 0d7d49d..fb7c6a3 100644 --- a/wanxiang_t9.schema.yaml +++ b/wanxiang_t9.schema.yaml @@ -368,9 +368,9 @@ speller: grammar: language: wanxiang-lts-zh-hans - collocation_max_length: 8 #命中的最长词组 - collocation_min_length: 2 #命中的最短词组,搭配词频健全的词库时候应当最小值设为3避开2字高频词 - collocation_penalty: -6 #默认-12 对常见搭配词组施加的惩罚值。较高的负值会降低这些搭配被选中的概率,防止过于频繁地出现某些固定搭配。 - non_collocation_penalty: -17 #默认-12 对非搭配词组施加的惩罚值。较高的负值会降低非搭配词组被选中的概率,避免不合逻辑或不常见的词组组合。 - weak_collocation_penalty: -24 #默认-24 对弱搭配词组施加的惩罚值。保持默认值通常是为了有效过滤掉不太常见但仍然合理的词组组合。 - rear_penalty: -18 #默认-18 对词组中后续词语的位置施加的惩罚值。较高的负值会降低某些词语在句子后部出现的概率,防止句子结构不自然。 + collocation_max_length: 6 + collocation_min_length: 3 + collocation_penalty: -10 + non_collocation_penalty: -20 + weak_collocation_penalty: -45 + rear_penalty: -5