This commit is contained in:
Dominika Grajewska 2019-04-26 13:46:44 +02:00
parent 34067373a9
commit 4bcc3481f8
3 changed files with 19 additions and 0 deletions

5
Jenkinsfile vendored
View File

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

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
}