wer
This commit is contained in:
parent
c1d18f1007
commit
24e3b67146
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user