From b022f810cbbdbd1066ace2af9a9ab0000105a9c7 Mon Sep 17 00:00:00 2001 From: Monika Janocha Date: Tue, 21 Apr 2020 13:05:54 +0000 Subject: [PATCH] Zaktualizuj 'licz_linie_a_potem_metryki.sh' --- licz_linie_a_potem_metryki.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/licz_linie_a_potem_metryki.sh b/licz_linie_a_potem_metryki.sh index edaa1dd..603e471 100644 --- a/licz_linie_a_potem_metryki.sh +++ b/licz_linie_a_potem_metryki.sh @@ -10,6 +10,7 @@ awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn #Sclite sluzy do obliczenia WER. Kod ponizej z pkt 3.Metryki +#W hypothesis.trn powinny znaleźć się wyniki działania ASR W reference.trn - referencyjne zdania sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep Scores > scores awk 'BEGIN{OFS="\t"}{print $6, $7, $8, $9}' < scores | awk '{ print ($2 + $3 + $4)/($2 + $3 + $1) }' > wer.tsv