challenging-america-word-ga.../kenlm.sh

6 lines
215 B
Bash
Raw Normal View History

2022-04-24 22:05:42 +02:00
#!/bin/bash
KENLM_BUILD_PATH='/home/dawid/kenlm/build'
$KENLM_BUILD_PATH/bin/lmplz -o 3 < train_data.txt > kenlm_model.arpa
2022-04-24 22:17:11 +02:00
$KENLM_BUILD_PATH/bin/build_binary kenlm_model.arpa kenlm_model.binary
rm train_data.txt