jimmy54 / librime-predict

librime plugin. predict next word.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

librime-predict

librime plugin. predict next word.

Usage

  • Put the db file (by default predict.db) in rime user directory.
  • In *.schema.yaml, add predictor to the list of engine/processors before key_binder, or patch the schema with: engine/processors/@before 0: predictor
  • Add the prediction switch:
switches:
  - name: prediction
    states: [ 关闭预测, 开启预测 ]
    reset: 1
  • Config items for your predictor:
predictor:
  # predict db file in user directory/shared directory
  # default to 'predict.db'
  db: predict.db
  # max prediction candidates every time
  # default to 0, which means showing all candidates
  # you may set it the same with page_size so that period doesn't trigger next page
  max_candidates: 5
  # max continuous prediction times
  # default to 0, which means no limitation
  max_iterations: 1
  • Deploy and enjoy.

About

librime plugin. predict next word.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 77.0%Language:Rust 18.6%Language:CMake 4.4%