Skip to content

About

Rime 精选词库

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rime-selected

Rime 精选词库,本仓库从 alswl/Rime 剥离。

更新词库

依赖:python3、wget、ggrep/gsed/gawk/sponge(macOS 用 Homebrew 安装 grep/gnu-sed/gawk/moreutils),以及本机 clone 好的 ascel(默认路径 ~/dev/github.com/alswl/ascel/ascel.py,可在 Makefile 的 ASCEL_BIN 修改)。

搜狗词库(下载 .scel → 转换追加词条 → 更新 version):

make download-wangluoliuxingxinci       # 网络流行新词
make download-kaifadashenzhuanyongciku  # 开发大神专用词库
make download-mingxing                  # 明星

luna 单字词库(拉取 rime 上游 luna_pinyin → 按现代汉语常用词表过滤单字 → 生成词库):

make gen-luna-pinyin

说明:

  • 更新前会先清洗词条区(保留 YAML header),词条历史通过 git diff 追溯
  • 搜狗源内容未变化的词库重跑后词条不变,仅 version 日期更新,属正常现象
  • 新增搜狗词库时,在 Makefile 里加一个 download-<name> 目标(id/detail 链接/dict 文件名),并确认 selected.<name>.dict.yaml 存在且 header 中 version: "..." 带引号(sed 替换依赖该格式)

如何使用

首先确保已经安装了 Plum,见 rime/plum。

其次进行安装词库:

cd your-path-to-rime
./plum/rime-install alswl/rime-selected

# 编辑你使用的输入方式,比如 luna_pinyin.custom.dict.yaml
vim luna_pinyin.custom.dict.yaml
# 添加对应内容:

---
name: luna_pinyin.custom
version: "2018.10.05"
sort: by_weight
use_preset_vocabulary: true
import_tables:
    - luna_pinyin.poetry
    - selected.xiandaihanyuchangyongcibiao # <- 加入你需要的词库名,比如这条

About

Rime 精选词库

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages