eval - add sum

This commit is contained in:
Małgorzata Schmidt 2019-04-26 14:56:24 +02:00
parent 960d8839e8
commit ca5de33378

View File

@ -9,3 +9,5 @@ awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.tr
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > sclite_results.txt
cat sclite_results.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > to_wer.txt
awk -F ' ' '{sum = $1 + $2} END {print sum}' to_wer.txt