This commit is contained in:
Kamil Paprota 2020-04-03 16:29:46 +02:00
parent ad1d0602b0
commit 0e503074d5

View File

@ -3,6 +3,11 @@ wc -l wikiniews_results.tsv > lines_number.txt
cut -f2 wikiniews_results.tsv > hypothesis.txt cut -f2 wikiniews_results.tsv > hypothesis.txt
cut -f3 wikiniews_results.tsv > reference.txt cut -f3 wikiniews_results.tsv > reference.txt
mv wer.txt wer1.txt
mv srr.txt srr1.txt
cat wer1.txt | tail -n 6 > wer.txt
cat srr1.txt | tail -n 6 > srr.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn