Added awk files and calls in Jenkinsfile

This commit is contained in:
Kacper Kurzeja 2019-04-26 13:19:46 +02:00
parent 14accac42d
commit 0e859b1d94
3 changed files with 19 additions and 1 deletions

6
Jenkinsfile vendored
View File

@ -6,7 +6,11 @@ node {
docker_image.inside{
sh "echo echo inside"
sh 'awk -f get_2nd.awk < wikiniews_results.tsv > hypotheses.txt'
sh 'awk -f get_3nd.awk < wikiniews_results.tsv > references.txt'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < references.txt > references.trn'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < hypotheses.txt > hypotheses.trn'
sf 'sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all stdout'
}
sh label: '', script: './script.sh'

7
get_2nd.awk Normal file
View File

@ -0,0 +1,7 @@
BEGIN{
FS="\\t"
}
{
print $2
}

7
get_3rd.awk Normal file
View File

@ -0,0 +1,7 @@
BEGIN{
FS="\\t"
}
{
print $3
}