pip install kenlm 编译安装训练模型可执行文件,参考kenlm . code . Kenneth Heafield wget -O - https://kheafield.com/code/kenlm.tar.gz |tar xz mkdir kenlm/build cd kenlm/build cmake .. make -j2 训练基于字的4-grams模型 kenlm/build/bin/lmplz -o 4 < rmrb_word.txt >rmrb_word_model.arpa...