2020-04-03 16:36:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
|
2020-04-03 17:42:11 +02:00
|
|
|
|
|
|
|
paste -d ' ' wikiniews_results.tsv clear.txt > support.tsv
|
|
|
|
cat support.tsv > wikiniews_results.tsv
|
2020-04-03 17:27:22 +02:00
|
|
|
|
2020-04-03 16:44:38 +02:00
|
|
|
avg=$(numaverage clear.txt)
|
2020-04-03 17:00:49 +02:00
|
|
|
|
2020-04-03 17:04:30 +02:00
|
|
|
srr_matching=$(grep -x "0" clear.txt | wc -l)
|
|
|
|
all=$(cat clear.txt | wc -l)
|
2020-04-03 17:33:49 +02:00
|
|
|
srr=$(echo "($srr_matching/$all)*100" | bc -l)
|
|
|
|
|
2020-04-05 18:29:20 +02:00
|
|
|
echo "$avg" >> averagewer.txt
|
|
|
|
echo "$srr" >> averagesrr.txt
|
2020-04-05 17:46:31 +02:00
|
|
|
|
2020-04-05 18:30:49 +02:00
|
|
|
tail -n 50 averagewer.txt > averagewertmp.txt
|
2020-04-05 17:55:34 +02:00
|
|
|
cat averagewertmp.txt > averagewer.txt
|
|
|
|
|
2020-04-05 18:30:49 +02:00
|
|
|
tail -n 50 averagesrr.txt > averagesrrtmp.txt
|
2020-04-05 17:55:34 +02:00
|
|
|
cat averagesrrtmp.txt > averagesrr.txt
|
2020-04-05 17:39:19 +02:00
|
|
|
|
2020-04-03 17:28:16 +02:00
|
|
|
echo "Avg WER: $avg%" >> clear.txt
|
2020-04-03 17:31:24 +02:00
|
|
|
echo "SRR: $srr%" >> clear.txt
|
2020-04-05 17:39:19 +02:00
|
|
|
|
|
|
|
|