This commit is contained in:
laskau 2019-04-26 13:28:35 +02:00
parent 5b92dcff10
commit acb68e6a58
2 changed files with 5 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -34,7 +34,10 @@ pipeline {
stage('WER & SRR') {
steps {
sh 'sh metryki.sh'
cat Infra/wikiniews_results.tsv | cut -d ',' -f3 > reference.txt
cat Infra/wikiniews_results.tsv | cut -d ',' -f2 > hypothesis.txt
sh 'sh metryki.sh' reference.txt reference.trn
sh 'sh metryki.sh' hypothesis.txt hypothesis.trn
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
}
}

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < $1 > $2