WER calculated

This commit is contained in:
email 2019-04-26 14:39:17 +02:00
parent cf8e9d5b9d
commit 7130022103

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 > WER_SSR.txt
cat WER_SSR.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > values.txt
for i in `cat values.txt`; do $WER=($2+$3+$4)/($2+$3+$1);echo $WER done; > values_WER.txt