diff --git a/script.sh b/script.sh index 7dd4117..c690915 100644 --- a/script.sh +++ b/script.sh @@ -15,7 +15,7 @@ awk '{ print ($2+$3+$4)/($2+$3+$1) }' values.txt > WER_outcomes.txt paste $FILE WER_outcomes.txt > wikiniews_results2.tsv -awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' WER_outcomes.txt > WER_SSR_outcomes.txt +awk '{ sum += $1; n++ } END { if (n > 0) print sum / n; }' WER_outcomes.txt > WER_SRR_outcomes.txt -awk '{ n++; if ($2==0 && $3==0 && $4==0) corr++ } END { print corr / n; }' values.txt >> WER_SSR_outcomes.txt +awk '{ n++; if ($2==0 && $3==0 && $4==0) corr++ } END { print corr / n; }' values.txt >> WER_SRR_outcomes.txt