This commit is contained in:
Dawid Kubicki 2019-04-26 13:35:04 +02:00
parent 4d0b5ac864
commit decae3db12

4
Jenkinsfile vendored
View File

@ -8,8 +8,8 @@ node{
sh 'echo works' sh 'echo works'
sh 'awk -f file.awk < wikiniews_results.tsv > hypotheses.txt' sh 'awk -f file.awk < wikiniews_results.tsv > hypotheses.txt'
sh 'awk -f file2.awk < wikiniews_results.tsv > references.txt' sh 'awk -f file2.awk < wikiniews_results.tsv > references.txt'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn' sh 'awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < hypotheses.txt > hypotheses.trn' sh 'awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn'
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout' sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
} }
} }