Skip to content
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

如何让emoji字符固定在候选词的倒数第2个开始出现? #25

Open
netvolcano opened this issue Feb 5, 2025 · 4 comments
Open

Comments

@netvolcano
Copy link

好像没有看到什么配置可实现?是使用reduce_emoji_filter.lua这个脚本吗?

@amzxyz
Copy link
Owner

amzxyz commented Feb 5, 2025

就是

@netvolcano
Copy link
Author

试过了好像不行,在wanxiang.schema.yaml中仿照reduce_english_filter设置了一下,发现emoji出现的位置好像没有什么变化。

@netvolcano
Copy link
Author

发现需要在filters中,把reduce_emoji_filter放在emoji的后面,如下:

filters:
    - ...
    - simplifier@emoji                              # Emoji
    - lua_filter@*reduce_emoji_filter        # 降低Emoji在候选项的位置
    - ...

@netvolcano
Copy link
Author

netvolcano commented Feb 10, 2025

加了这个reduce_emoji_filter后,好像发现有出现emoji字符重复的现象,如下:

Image

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