zadanie3 test29
This commit is contained in:
parent
3ac0048576
commit
4dea00e6ab
@ -1,14 +1,12 @@
|
|||||||
#!/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
|
||||||
paste -d ' ' wikiniews_results.tsv clear.txt > wikiniews_results.tsv
|
paste -d '\t' wikiniews_results.tsv clear.txt > wikiniews_results.tsv
|
||||||
|
|
||||||
avg=$(numaverage clear.txt)
|
avg=$(numaverage clear.txt)
|
||||||
avg=$(echo "$avg*100" | bc -l)
|
|
||||||
|
|
||||||
srr_matching=$(grep -x "0" clear.txt | wc -l)
|
srr_matching=$(grep -x "0" clear.txt | wc -l)
|
||||||
all=$(cat clear.txt | wc -l)
|
all=$(cat clear.txt | wc -l)
|
||||||
srr=$(echo "($srr_matching/$all)*100" | bc -l)
|
srr=$(echo "($srr_matching/$all)*100" | bc -l)
|
||||||
|
|
||||||
|
|
||||||
echo "Avg WER: $avg%" >> clear.txt
|
echo "Avg WER: $avg%" >> clear.txt
|
||||||
echo "SRR: $srr%" >> clear.txt
|
echo "SRR: $srr%" >> clear.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user