This commit is contained in:
Dawid Kubicki 2019-04-26 13:23:29 +02:00
parent 9361b7831d
commit 388582c9a1
3 changed files with 19 additions and 0 deletions

5
Jenkinsfile vendored
View File

@ -6,5 +6,10 @@ node{
def customImage = docker.build("my-custom-image")
customImage.inside {
sh 'echo works'
sh 'awk -f file.awk < wikiniews_results.tsv > hypotheses.txt'
sh 'awk -f file2.awk < wikiniews_results.tsv > references.txt'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn'
sh 'awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < hypotheses.txt > hypotheses.trn'
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
}
}

7
file.awk Normal file
View File

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

7
file2.awk Normal file
View File

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