From bdd651ccdee981d15fc6ad2f816c2eda67cea2f1 Mon Sep 17 00:00:00 2001 From: s407323 Date: Fri, 26 Apr 2019 16:54:01 +0200 Subject: [PATCH] remove multiplying by 100 --- zadanie3/grep.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zadanie3/grep.sh b/zadanie3/grep.sh index f666981..014a802 100644 --- a/zadanie3/grep.sh +++ b/zadanie3/grep.sh @@ -2,13 +2,13 @@ # (S + D + I)/(S + D + C) WER -cat zadanie3/sclite.txt | grep -e "Scores:" | awk '{ print 100.0 * ($7 + $8 + $9) / ($7 + $8 + $6) }' > zadanie3/wikiniews_results_wer.tsv +cat zadanie3/sclite.txt | grep -e "Scores: " | awk '{ print ($7 + $8 + $9) / ($7 + $8 + $6) }' > zadanie3/wikiniews_results_wer.tsv cp ASR-eval/wikiniews_results.tsv zadanie3/wikiniews_results.tsv paste zadanie3/wikiniews_results_wer.tsv zadanie3/wikiniews_results.tsv ## SSR -cat zadanie3/sclite.txt | grep -e "Scores:" | awk '{all++ ; if ($7 == 0 && $8 == 0 && $9 == 0) good += 1 } END { print good/all }' > zadanie3/ssr.txt +cat zadanie3/sclite.txt | grep -e "Scores: " | awk '{all++ ; if ($7 == 0 && $8 == 0 && $9 == 0) good += 1 } END { print good/all }' > zadanie3/ssr.txt ## AVG WER cat zadanie3/wikiniews_results_wer.tsv | awk '{ nr++; sum += $1 } END { print sum/nr}' > zadanie3/avg.txt