WER calculated

This commit is contained in:
email 2019-04-26 13:02:03 +02:00
parent 54de87d179
commit e369c3f176
2 changed files with 5 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -6,7 +6,7 @@ pipeline {
copyArtifacts filter: '*', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
sh 'ls -l'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416422/s416422-mlworkshops.git']]])
sh 'sh script.sh wikiniews_results.tsv'
sh 'sh script.sh'
archiveArtifacts 'lines.txt'
}
}

View File

@ -1 +1,4 @@
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < $1 > reference.trn sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < wikiniews_results.tsv > reference.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout