s407323-mlworkshops/zadanie3/grep.sh
2019-04-26 16:04:04 +02:00

7 lines
199 B
Bash

cat zadanie3/sclite.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > results_wer.txt
# (S + D + I)/(S + D + C)
awk '{ print ($2 + $3 + $4) / ($2 + $3 + $1) }' results_wer.txt
cat results_wer.txt