From 45c5a6ab29e539695b4fc51482b1c5f762d9f631 Mon Sep 17 00:00:00 2001 From: Shingo Date: Wed, 6 Nov 2024 19:26:57 +0800 Subject: [PATCH] chore: update gram config --- flypy_xhfast.schema.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/flypy_xhfast.schema.yaml b/flypy_xhfast.schema.yaml index dbede000..02b5961e 100644 --- a/flypy_xhfast.schema.yaml +++ b/flypy_xhfast.schema.yaml @@ -119,15 +119,18 @@ grammar: translator: dictionary: flypy_xhfast spelling_hints: 1 # `0`: 关闭单字编码提示 - initial_quality: 1.3 + initial_quality: 1.3 # 初始词频 + dynamic_model: true # 启用动态语言模型 enable_user_dict: true # 开启用户词库 enable_completion: true # 启用输入补全 + prioritize_quality: true # 启用优先质量选项 encode_commit_history: true # 历史上屏自动编码成词 contextual_suggestions: true # 开启语言模型优化候选 - sentence_over_completion: true # 逐鍵提示時啓智能組句 - # max_homophones: 7 - # max_homographs: 7 - # max_phrase_length: 5 + # sentence_over_completion: true # 逐鍵提示時啓智能組句 + # segment_length: 4 # 设置分词长度 + # max_homophones: 7 # 最大同音簇长度〔需配合 grammar 使用〕 + # max_homographs: 7 # 最大同形簇长度〔需配合 grammar 使用〕 + # max_phrase_length: 7 # 设置短语的最大长度 # enable_encoder: true # always_show_comments: true # disable_user_dict_for_patterns: