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