up
This commit is contained in:
parent
17f6a32908
commit
4ca468fa23
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -9,6 +9,8 @@ pipeline {
|
||||
stage('copyArtifacts') {
|
||||
steps {
|
||||
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful(), target: './'
|
||||
copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 's426086-metrics', selector: lastSuccessful()
|
||||
copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 's426086-metrics', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
stage('countLines') {
|
||||
@ -20,7 +22,7 @@ pipeline {
|
||||
stage('archiveArtifacts') {
|
||||
steps {
|
||||
archiveArtifacts 'countlines_result.txt'
|
||||
archiveArtifacts 'wikiniews_results.txt'
|
||||
archiveArtifacts 'wikiniews_results.tsv'
|
||||
archiveArtifacts 'wer.txt'
|
||||
archiveArtifacts 'srr.txt'
|
||||
}
|
||||
|
@ -17,11 +17,9 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std
|
||||
awk 'BEGIN{OFS="\t"}{print $6, $7, $8, $9}' < results | awk '{ print ($2 + $3 + $4)/($2 + $3 + $1) }' > wer.tsv
|
||||
|
||||
paste wikiniews_results.tsv wer.tsv > wikiniews_results.tsv
|
||||
# tail -n 49 wer.txt >> wer_tmp.txt
|
||||
# rm wer.txt
|
||||
# mv wer_tmp.txt wer.txt
|
||||
# tail -n 49 srr.txt >> srr_tmp.txt
|
||||
# rm srr.txt
|
||||
# mv srr_tmp.txt srr.txt
|
||||
|
||||
tail -n 50 wer.txt > wer.txt
|
||||
tail -n 50 srr.txt > srr.txt
|
||||
|
||||
awk 'BEGIN{FS=OFS="\t"}{ bad = bad + $1; all++ }END{ print bad/all }' < wer.tsv >> wer.txt
|
||||
awk 'BEGIN{FS=OFS="\t"}{ if ( $1 == 0 ) good++; all++ }END{ print good/all }' < wer.tsv >> srr.txt
|
Loading…
Reference in New Issue
Block a user