challenging-america-word-ga.../kenlm.sh
2022-04-24 22:17:11 +02:00

6 lines
215 B
Bash

#!/bin/bash
KENLM_BUILD_PATH='/home/dawid/kenlm/build'
$KENLM_BUILD_PATH/bin/lmplz -o 3 < train_data.txt > kenlm_model.arpa
$KENLM_BUILD_PATH/bin/build_binary kenlm_model.arpa kenlm_model.binary
rm train_data.txt