From e8233ccc83f8191a78a562d0fd9c9f4d6bc81780 Mon Sep 17 00:00:00 2001 From: Zuzanna Ric Date: Fri, 26 Apr 2019 16:19:51 +0200 Subject: [PATCH] pierwszy --- skrypt2.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skrypt2.sh b/skrypt2.sh index 11c1824..0ec24f9 100644 --- a/skrypt2.sh +++ b/skrypt2.sh @@ -5,7 +5,6 @@ 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 -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > tekst.txt grep 'Scores:' tekst.txt | cut -d ' ' -f 6-9 > oceny.txt -awk '{print ($2 + $3 + $4)/($1 + $2 + $3)} oceny.txt > WER.txt -paste $FILE WER.txt> wikiniews_results.tsv +awk '{print ($2 + $3 + $4)/($1 + $2 + $3)}' oceny.txt > WER.txt awk '{sum += $1; n++} END {if (n>0) print sum/n;}' WER.txt > WER_SRR.txt awk '{n++; if ($2==0 && $3==0 && $4==0) corr++} END {print corr/n;}' oceny.txt >> WER_SRR.txt