This commit is contained in:
vagrant 2020-04-23 06:33:53 +00:00
parent 350f0df10e
commit 53722a27cf

View File

@ -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"}{ 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 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 wer.txt > wer1.txt
tail -n 50 srr.txt | sponge srr.txt tail -n 50 srr.txt > srr1.txt
rm wer.txt
rm srr.txt
mv wer1.txt wer.txt
mv srr1.txt srr.txt