This commit is contained in:
Dominika Grajewska 2019-04-26 13:54:16 +02:00
parent 4bcc3481f8
commit 50718cc018
2 changed files with 3 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -8,8 +8,8 @@ customImage.inside {
sh 'echo aaaa' sh 'echo aaaa'
sh 'awk -f file.awk < wikiniews_results.tsv > hypothesis.txt' sh 'awk -f file.awk < wikiniews_results.tsv > hypothesis.txt'
sh 'awk -f file2.awk < wikiniews_results.tsv > reference.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 -f file3.awk < reference.txt > reference.trn
sh 'awk \'{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}\' < hypothesis.txt > hypothesis.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 srdout' sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all srdout'
} }
} }

1
file3.awk Normal file
View File

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