From 7661e21aafff9acf56bdf1f7171d292737edea74 Mon Sep 17 00:00:00 2001 From: s452111 Date: Wed, 22 Apr 2020 14:07:17 +0200 Subject: [PATCH] Task 3 - calculate avg wer and srr --- metrics_service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics_service.sh b/metrics_service.sh index 8c3ace6..14fe868 100644 --- a/metrics_service.sh +++ b/metrics_service.sh @@ -19,4 +19,4 @@ paste wer_per_line.txt wikiniews_results.tsv awk '{sum += $1; n++} END { print sum / n; }' < wer_per_line.txt > wer.txt # calculate SSR - +awk '{if ($1 == 0) acc += 1;} END { print acc / NR; }' < wer_per_line.txt > srr.txt