Tag Archives: error: when using generate_lm.py for chinese

[Solved] error: when using generate_lm.py for Chinese

python3 generate_lm.py –input_txt TRANS.txt –output_dir .   –top_k 500 –kenlm_bins /home/wieneralan/tmp/DeepSpeech/kenlm/build/bin/   –arpa_order 2 –max_arpa_memory “85%” –arpa_prune “0|0|1” –binary_a_bits 255 –binary_q_bits 8 –binary_type trieerror: Exception because `prune_thresholds.size() > order’.
You specified pruning thresholds for orders 1 through 3 but the model only has order 2Solution:
change --arpa_prune "0|0|1"  to "0|1"