From 00b2473734bc206c4727942972a857306a92ccc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C5=82gorzata=20Schmidt?= Date: Fri, 26 Apr 2019 15:32:13 +0200 Subject: [PATCH] srr } --- evaluation.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/evaluation.sh b/evaluation.sh index 508b56c..41f15be 100644 --- a/evaluation.sh +++ b/evaluation.sh @@ -22,6 +22,5 @@ paste $file1 wer.txt > wikiniews_results2.tsv awk '{ total += $1; count++ } END { print total/count }' wer.txt > metric_aggregated.txt # caculate srr -awk '{count++; -if ($2 == 0 && $4 == 0 && $5 == 0) correct += 1} END -{print correct/count}' wer.txt >> metric_aggregated.txt +awk '{count++ ; if ($2 == 0 && $3 == 0 && $4 == 0) correct += 1 } END { print correct/count }' wer.txt >> metric_aggregated.txt +