Task 3 - calculate avg wer and srr

This commit is contained in:
s452111 2020-04-22 14:07:17 +02:00
parent f4956e9539
commit 7661e21aaf

View File

@ -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 awk '{sum += $1; n++} END { print sum / n; }' < wer_per_line.txt > wer.txt
# calculate SSR # calculate SSR
awk '{if ($1 == 0) acc += 1;} END { print acc / NR; }' < wer_per_line.txt > srr.txt