From 13ffd1b0e5f1a3638e261d1fe4c19b10237ee23b Mon Sep 17 00:00:00 2001 From: wasertech Date: Sat, 4 Jun 2022 22:03:22 +0200 Subject: [PATCH] fix lm values load --- STT/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STT/run.sh b/STT/run.sh index d8826b5e..4e7ec06e 100755 --- a/STT/run.sh +++ b/STT/run.sh @@ -34,7 +34,7 @@ train.sh evaluate_lm.sh -if [ -f "/mnt/lm/opt_lm.yml" -a -z "${LM_ALPHA}" -a -z "${LM_BETA}" ]; then +if [ -f "/mnt/lm/opt_lm.yml" -a "${LM_ALPHA}" = "0.0" -a "${LM_BETA}" = "0.0" ]; then export LM_ALPHA=$(cat /mnt/lm/opt_lm.yml | shyaml get-value lm_alpha) export LM_BETA=$(cat /mnt/lm/opt_lm.yml | shyaml get-value lm_beta)