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

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 " " '{($2 + $3 + $4)/($2 + $3 + $1)}' to_wer.txt > wer.txt
awk '{ print ($2 + $3 + $4)/($2 + $3 + $1)}' to_wer.txt > wer.txt