From 2eb77f54d4c730fb5c8957f6eab5d492016e7d98 Mon Sep 17 00:00:00 2001 From: email Date: Fri, 26 Apr 2019 14:56:46 +0200 Subject: [PATCH] WER calculated --- script.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.sh b/script.sh index 1bbbfec..a2807ba 100644 --- a/script.sh +++ b/script.sh @@ -10,4 +10,5 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std cat WER_SSR.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > values.txt -for i in `cat values.txt`; do (($2+$3+$4)/($2+$3+$1));done; > values_WER.txt +for i in `cat values.txt`; do a=3; b=4; c=$((($2+$3+$4)/($2+$3+$1))); echo $c ;done; > values_WER.txt +