awk in dockerfile

This commit is contained in:
Krzysztof Jurkiewicz 2019-04-26 14:21:06 +02:00
parent 95b6b542c1
commit 56ed576ce4
2 changed files with 3 additions and 2 deletions

1
Jenkinsfile vendored
View File

@ -12,4 +12,5 @@ node {
sh 'chmod +x metrics_docker.sh'
sh './metrics_docker.sh'
}
archive '*'
}

View File

@ -15,8 +15,8 @@
awk -F '\t' '{print $2}' < wikiniews_results.tsv > hypothesis.txt
awk -F '\t' '{print $3}' < wikiniews_results.tsv > 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
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
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout