From e369c3f176a8ae190d738977fd68a1582d0203e0 Mon Sep 17 00:00:00 2001 From: email Date: Fri, 26 Apr 2019 13:02:03 +0200 Subject: [PATCH] WER calculated --- Jenkinsfile | 2 +- script.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9822433..7f07a52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } diff --git a/script.sh b/script.sh index ef3714c..716747c 100644 --- a/script.sh +++ b/script.sh @@ -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 + +