希望增加「上下文调频」功能

Open
#897 14 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
backend

Research direction

No file, test, or entry point is named in the issue. Start by locating the algorithm responsible for candidate ranking and inspect how prior input context is represented. Done should include context-sensitive results matching the examples: bao after 支付 favors 宝, and ma after 好 favors 吗, without regressing standalone input.

Written by the indexing model from the issue text.

Description

enhancement

目前的算法好像没有「上下文调频」的功能,即根据已输入内容进行调频,句尾的「吗、呀、吧……」经常出现「爸、吗、吧、妈、压……」,我经常需要删掉最后一个字,上屏后再重新输入。

「上下文调频」的功能举例如下:单独输入bao会输出「包」。如果先输出「支付」的话,再输入bao会输出「宝」。单独输入ma会输出「妈」,如果先输入「好」,在再输入ma会输出「吗」。

Dominant language
C++
Stars
4.7k
Forks
752
Avg merge
4d 7h
Merged PRs (30d)
16

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rime/librime

All issues in rime/librime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.