From fb981b74ee67a81b2463a7037ab1c756a620a7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriela=20Pa=C5=82ka?= Date: Fri, 3 Apr 2020 17:09:55 +0200 Subject: [PATCH] Use tail --- script.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.sh b/script.sh index 50eb37b..c99a152 100755 --- a/script.sh +++ b/script.sh @@ -7,4 +7,6 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std python3 count_metrics.py results.txt paste wikiniews_results.tsv wer.txt > tmp.txt && mv tmp.txt wikiniews_results.tsv awk '{ total += $1; count++ } END { print total/count }' new_wer.txt >> wer.txt +tail -n 50 wer.txt > tmp && mv tmp wer.txt +tail -n 50 srr.txt > tmp && mv tmp srr.txt rm results.txt new_wer.txt