correct wer

This commit is contained in:
Małgorzata Schmidt 2019-04-26 15:02:36 +02:00
parent ca5de33378
commit a7be67fd7d

View File

@ -10,4 +10,4 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std
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
awk -F " " '{($2 + $3 + $4)/($2 + $3 + $1)}' to_wer.txt > wer.txt