Moved awk calls to file
This commit is contained in:
parent
a764accd4c
commit
ae3135f8e8
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -8,8 +8,8 @@ node {
|
||||
sh "echo echo inside"
|
||||
sh 'awk -f get_2nd.awk < wikiniews_results.tsv > hypotheses.txt'
|
||||
sh 'awk -f get_3rd.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'
|
||||
sh 'awk -f txt_to_tsr_converter.awk < references.txt > references.trn'
|
||||
sh 'awk -f txt_to_tsr_converter.awk < hypotheses.txt > hypotheses.trn'
|
||||
sf 'sclite -f 0 -r references.trn trn -h hypotheses.trn trn -e utf-8 -i rm -o all stdout'
|
||||
}
|
||||
|
||||
|
1
txt_to_tsr_converter.awk
Normal file
1
txt_to_tsr_converter.awk
Normal file
@ -0,0 +1 @@
|
||||
{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}
|
Loading…
Reference in New Issue
Block a user