Added awk files and calls in Jenkinsfile
This commit is contained in:
parent
14accac42d
commit
0e859b1d94
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -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
7
get_2nd.awk
Normal file
@ -0,0 +1,7 @@
|
||||
BEGIN{
|
||||
FS="\\t"
|
||||
}
|
||||
|
||||
{
|
||||
print $2
|
||||
}
|
7
get_3rd.awk
Normal file
7
get_3rd.awk
Normal file
@ -0,0 +1,7 @@
|
||||
BEGIN{
|
||||
FS="\\t"
|
||||
}
|
||||
|
||||
{
|
||||
print $3
|
||||
}
|
Loading…
Reference in New Issue
Block a user