This commit is contained in:
vagrant 2020-04-22 21:32:20 +00:00
parent 91698cdf16
commit 40c7988fec

View File

@ -11,7 +11,7 @@ awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.tr
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
#Sclite sluzy do obliczenia WER
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all test.txt
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout
# awk 'BEGIN{OFS="\t"}{print $6, $7, $8, $9}' < scores | awk '{ print ($2 + $3 + $4)/($2 + $3 + $1) }' > wer.tsv