This commit is contained in:
Dawid Kubicki 2019-04-26 13:50:21 +02:00
parent d20407b6e0
commit de786fb049
2 changed files with 3 additions and 2 deletions

4
Jenkinsfile vendored
View File

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

1
file3.awk Normal file
View File

@ -0,0 +1 @@
{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}