rime-qwen-freq

mizorewww

Distills calibrated word frequencies from open-weight language models into dictionaries for the Rime input method, improving how candidates are ordered when typing Chinese, all computed offline with no runtime cost.

C++Created

What is mizorewww/rime-qwen-freq?

rime-qwen-freq builds word-frequency data for Rime, the input method engine, from causal language models. The README describes three steps: offline unigram word-frequency calibration, a Bayesian domain log-odds boost that favours words from chosen subject areas, and PMI distillation into .gram files, which store how often words follow one another. It has zero runtime dependencies.

Ready-made tables are provided on the releases page, including dictionaries for AI and computing terms, Chinese Wikipedia, Chinese Wiktionary, Moegirl, web slang and mixed Wanxiang data, along with English tables from rime_ice. A design post explains the method. The README is in English and Simplified Chinese.

It suits Rime users who want suggestions tuned to their vocabulary, and developers interested in using language models to build input method dictionaries.

imelanguage-modelpinyinqwenrime