dodanie plikow aby wyliczyc wer FIX3
This commit is contained in:
parent
fb299427a0
commit
1e91f2142b
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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') {
|
||||
|
@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
x = open(werWIP.txt,"r")
|
||||
y = open(wer.txt,"w")
|
||||
lines = x.readlines()
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user