s407323-mlworkshops/zadanie3/trn.sh

6 lines
332 B
Bash

cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/sentences.txt
cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/references.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/sentences.txt > zadanie3/sentences.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/references.txt > zadanie3/references.trn