1
0
This commit is contained in:
Adrianna Zaleska 2020-04-18 17:38:31 +02:00
parent c1d18f1007
commit 24e3b67146
2 changed files with 3 additions and 3 deletions

3
Jenkinsfile vendored
View File

@ -8,8 +8,7 @@ pipeline {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
sh label: '', script: 'chmod a+rwx script.sh'
sh label: '', script: './script.sh'
archiveArtifacts 'hypothesis.trn'
archiveArtifacts 'reference.trn'
archiveArtifacts 'wer.txt'
}
}
}

View File

@ -3,4 +3,5 @@
cut --fields=2 wikiniews_results.tsv > hypothesis.txt
cut --fields=3 wikiniews_results.tsv > reference.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(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 > wer.txt