format fix

This commit is contained in:
s452111 2020-04-22 14:34:46 +02:00
parent a0c0edb305
commit 7f5b02dacd

View File

@ -19,7 +19,7 @@ awk '{getline l < "wer_per_line.txt"; print $0"\t"l} ' wikiniews_results.tsv > w
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 awk '{if ($1 == 0) acc += 1;} END { print ( acc / NR) * 100; }' < wer_per_line.txt > srr.txt
rm wer_per_line.txt rm wer_per_line.txt
rm hypothesis.txt rm hypothesis.txt