diff --git a/countlines-metrics.sh b/countlines-metrics.sh index d4786e7..ed535d6 100644 --- a/countlines-metrics.sh +++ b/countlines-metrics.sh @@ -21,5 +21,9 @@ paste wikiniews_results.tsv wer.tsv > wikiniews_results.tsv awk 'BEGIN{FS=OFS="\t"}{ bad = bad + $1; all++ }END{ print bad/all }' < wer.tsv >> wer.txt awk 'BEGIN{FS=OFS="\t"}{ if ( $1 == 0 ) good++; all++ }END{ print good/all }' < wer.tsv >> srr.txt -tail -n 50 wer.txt | sponge wer.txt -tail -n 50 srr.txt | sponge srr.txt \ No newline at end of file +tail -n 50 wer.txt > wer1.txt +tail -n 50 srr.txt > srr1.txt +rm wer.txt +rm srr.txt +mv wer1.txt wer.txt +mv srr1.txt srr.txt \ No newline at end of file