zad3 test18

This commit is contained in:
massta 2020-04-03 17:00:49 +02:00
parent 7d3766b70d
commit 32799f3c54

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
avg=$(numaverage clear.txt) avg=$(numaverage clear.txt)
srr_matching=$(grep -x "0" results.txt | wc -l) srr_matching=$(grep -x "0" results.txt | wc -l)
all=$(wc -l) all=$(results.txt | wc -l)
srr=$((srr_matching/all)) srr=$((srr_matching/all))
echo "Medium WER: $avg" >> clear.txt echo "Medium WER: $avg" >> clear.txt
echo "SRR: $srr" >> clear.txt echo "SRR: $srr" >> clear.txt