From f6731cd97565bf4108f1064a83f1fffea4ca351b Mon Sep 17 00:00:00 2001 From: Yifan Peng Date: Sat, 30 Apr 2022 18:43:49 -0400 Subject: [PATCH] update mt.sh --- egs2/TEMPLATE/mt1/mt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs2/TEMPLATE/mt1/mt.sh b/egs2/TEMPLATE/mt1/mt.sh index 1903e07630c..bf6996c13c8 100755 --- a/egs2/TEMPLATE/mt1/mt.sh +++ b/egs2/TEMPLATE/mt1/mt.sh @@ -1214,7 +1214,7 @@ if ! "${skip_eval}"; then detokenizer.perl -l ${tgt_lang} -q < "${_scoredir}/ref.trn" > "${_scoredir}/ref.trn.detok" detokenizer.perl -l ${tgt_lang} -q < "${_scoredir}/hyp.trn" > "${_scoredir}/hyp.trn.detok" - if [ ${tgt_case} = "tc" ]; then + if [ ${tgt_case} = "tc" ]; then echo "Case sensitive BLEU result (single-reference)" > ${_scoredir}/result.tc.txt sacrebleu "${_scoredir}/ref.trn.detok" \ -i "${_scoredir}/hyp.trn.detok" \