eval - add sum
This commit is contained in:
parent
960d8839e8
commit
ca5de33378
@ -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
|
Loading…
Reference in New Issue
Block a user