From a8267b314154df3ea1799f017aa0a18a286b73f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Furmann?= Date: Fri, 3 Apr 2020 13:15:20 +0000 Subject: [PATCH] Zaktualizuj 'script.sh' --- script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.sh b/script.sh index e06253d..e2bfbf0 100644 --- a/script.sh +++ b/script.sh @@ -8,4 +8,4 @@ awk 'BEGIN{OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep Scores > Scores -awk Scores > 'BEGIN{OFS="\t"}{print $6, $7, $8, $9}' | awk '{ print ($2 + $3 + $4)/($2 + $3 + $1) }' > wer.tsv \ No newline at end of file +awk 'BEGIN{OFS="\t"}{print $6, $7, $8, $9}' < Scores | awk '{ print ($2 + $3 + $4)/($2 + $3 + $1) }' > wer.tsv \ No newline at end of file