add ex 3 in process
This commit is contained in:
parent
ebce681fd6
commit
7715303475
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -29,5 +29,17 @@ pipeline {
|
||||
archiveArtifacts 'results.txt'
|
||||
}
|
||||
}
|
||||
stage('WER SRR Metrics') {
|
||||
steps {
|
||||
sh 'chmod +x ./wersrrmetrics.sh'
|
||||
sh './wersrrmetrics.sh'
|
||||
}
|
||||
}
|
||||
stage('Copy Metric Artifacts') {
|
||||
steps {
|
||||
copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
||||
copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
0
countmetrics.py
Normal file
0
countmetrics.py
Normal file
9
wersrrmetrics.sh
Normal file
9
wersrrmetrics.sh
Normal file
@ -0,0 +1,9 @@
|
||||
cut -f2 'wikiniews_results.tsv' > hypothesis.txt
|
||||
cut -f3 'wikiniews_results.tsv' > reference.txt
|
||||
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
|
||||
|
||||
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout
|
||||
|
||||
python3 countmetrics.py
|
Loading…
Reference in New Issue
Block a user