Moved awk calls to file

This commit is contained in:
Kacper Kurzeja 2019-04-26 13:33:18 +02:00
parent a764accd4c
commit ae3135f8e8
2 changed files with 3 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -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
View File

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