s452094-mlworkshops/get_data.sh
2020-04-03 14:02:37 +02:00

7 lines
275 B
Bash
Executable File

cat wikiniews_results.tsv | cut -f2 -s > hypothesis.txt
cat wikiniews_results.tsv | cut -f3 -s > reference.txt
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