From 65ed6159da34f8915c73e898e68beb3aa0bbbb49 Mon Sep 17 00:00:00 2001 From: email Date: Fri, 26 Apr 2019 15:46:00 +0200 Subject: [PATCH] WER calculated --- script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.sh b/script.sh index 7dd4117..c690915 100644 --- a/script.sh +++ b/script.sh @@ -15,7 +15,7 @@ awk '{ print ($2+$3+$4)/($2+$3+$1) }' values.txt > WER_outcomes.txt paste $FILE WER_outcomes.txt > wikiniews_results2.tsv -awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' WER_outcomes.txt > WER_SSR_outcomes.txt +awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' WER_outcomes.txt > WER_SRR_outcomes.txt -awk '{ n++; if ($2==0 && $3==0 && $4==0) corr++ } END { print corr / n; }' values.txt >> WER_SSR_outcomes.txt +awk '{ n++; if ($2==0 && $3==0 && $4==0) corr++ } END { print corr / n; }' values.txt >> WER_SRR_outcomes.txt