WER calculated

This commit is contained in:
email 2019-04-26 12:50:48 +02:00
parent 8f92a3d06d
commit 54de87d179
2 changed files with 2 additions and 4 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 lines.txt'
sh 'sh script.sh wikiniews_results.tsv'
archiveArtifacts 'lines.txt'
}
}

View File

@ -1,3 +1 @@
IN = $1
OUT = $2
wc -l $1 > $2
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