This commit is contained in:
Kuba Kowalczyk 2019-04-26 12:49:34 +02:00
parent d00f2d10c5
commit d90d1a0eb0
2 changed files with 4 additions and 7 deletions

2
Jenkinsfile vendored
View File

@ -8,6 +8,8 @@ pipeline {
sh label: '', script: 'chmod 777 counter.sh' sh label: '', script: 'chmod 777 counter.sh'
sh label: '', script: './counter.sh' sh label: '', script: './counter.sh'
archiveArtifacts 'output.txt' archiveArtifacts 'output.txt'
archiveArtifacts 'hypothesis.trn'
archiveArtifacts 'reference.trn'
} }
} }
} }

View File

@ -1,8 +1,3 @@
while IFS=$'\t' read -r -a myArray awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < wikiniews_results.tsv > reference.trn
do awk '{print gensub("^\\*\\*", "\\\\**", "g", $1) "\t(sp1_"NR")"}' < wikiniews_results.tsv > hypothesis.trn
echo "${myArray[1]}" >> reference.trn
echo "${myArray[2]}" >> hypothesis.trn
done < wikiniews_results.tsv
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout