dodanie plikow aby wyliczyc wer FIX3

This commit is contained in:
alicja.m.musial 2020-04-03 15:22:11 +02:00
parent fb299427a0
commit 1e91f2142b
3 changed files with 4 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -25,8 +25,6 @@ pipeline {
steps{
sh('chmod +x ./metrics.sh')
sh label: 'count', script: './metrics.sh'
sh('chmod +x ./WERcreator.py')
sh label: 'count wer', script: './WERcreator.py'
}
}
stage('Archive artifacts') {

View File

@ -1,3 +1,5 @@
x = open(werWIP.txt,"r")
y = open(wer.txt,"w")
lines = x.readlines()

View File

@ -7,3 +7,5 @@ awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep "Scores:" | sed 's/Scores: (#C #S #D #I) //' > werWIP.txt
python ./WERcreator.py