txt to trn

This commit is contained in:
Adrianna Zaleska 2020-04-18 17:30:57 +02:00
parent fe13f07ac9
commit c1d18f1007
2 changed files with 7 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -8,7 +8,8 @@ pipeline {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
sh label: '', script: 'chmod a+rwx script.sh'
sh label: '', script: './script.sh'
archiveArtifacts 'linecount.txt'
archiveArtifacts 'hypothesis.trn'
archiveArtifacts 'reference.trn'
}
}
}

View File

@ -1,2 +1,6 @@
#!/bin/sh
wc -l wikiniews_results.tsv > linecount.txt
# wc -l wikiniews_results.tsv > linecount.txt
cut --fields=2 wikiniews_results.tsv > hypothesis.txt
cut --fields=3 wikiniews_results.tsv > reference.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn