Skip to content

英文模糊匹配 #1850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dong-999 opened this issue Mar 22, 2025 · 2 comments
Open

英文模糊匹配 #1850

dong-999 opened this issue Mar 22, 2025 · 2 comments

Comments

@dong-999
Copy link

当前想要在英文输入下也有换选词显示,已经禁用了分词功能,但是无法实现模糊搜索。比如词库中输入t对应the that this, 如何在不更改词库的前提下,输入th也可以匹配,并且输入的越多,匹配的越准确呐?

@ksqsf
Copy link
Member

ksqsf commented Mar 22, 2025

enable_completion: true

@dong-999
Copy link
Author

schema:
schema_id: easy_en
name: "English"
version: "1.3"
author: "Rime Community"

switches:

  • name: ascii_mode
    reset: 0
    states: [ 中文, 西文 ]

engine:
processors:
- key_binder
- ascii_composer
- recognizer
- speller
- punctuator
- selector
- express_editor
- navigator
segmentors:
# - match@luna_pinyin_eng
- matcher
- ascii_segmentor
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- table_translator
- echo_translator
filters:
# - simplifier
- uniquifier

fallback_segmentor:
tag: unknown # 分段的标签
tip: "〔未知〕" # 候选词前的提示标识

menu:
page_size: 5
horizontal: true

punct_segmentor:
delimiters: " , "

speller:
algebra:
- derive/^([a-z]+)$/$1/
- derive/^([a-z]+)$/$1(-[a-z]+)*/

translator:
dictionary: easy_en
enable_sentence: false
enable_completion: true

easy_en:
split_sentence: false
enable_user_dict: true

ascii_composer:
switch_key:
Shift_L: clear

这是我整个的配置方案,按照你说的设置了,还是不行,能帮忙看下问题在哪吗?

enable_completion: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants