This commit is contained in:
Małgorzata Schmidt 2019-04-26 15:32:13 +02:00
parent 7ca6d472b6
commit 00b2473734

View File

@ -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