s407323-mlworkshops/zadanie3/grep.sh

7 lines
199 B
Bash
Raw Normal View History

2019-04-26 16:01:09 +02:00
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