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

5 lines
197 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