2020-04-21 22:40:42 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Prepare hypothesis file based on column 2
|
|
|
|
cut -f2 'wikiniews_results.tsv' > hypothesis.txt
|
|
|
|
# Prepare reference file based on column 3
|
|
|
|
cut -f3 'wikiniews_results.tsv' > reference.txt
|
|
|
|
|
|
|
|
# awk transfer txt to .trn
|
2020-04-21 22:53:15 +02:00
|
|
|
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
|