This commit is contained in:
s407323 2019-04-26 16:15:39 +02:00
parent 1fb0be242b
commit 82f05c6139
2 changed files with 4 additions and 5 deletions

2
Jenkinsfile vendored
View File

@ -37,6 +37,8 @@ pipeline {
sh 'chmod 755 ./zadanie3/grep.sh'
sh './zadanie3/grep.sh'
archiveArtifacts 'zadanie3/wikiniews_results_wer.tsv'
archiveArtifacts 'zadanie3/wikiniews_results.tsv'
}
}
}

View File

@ -1,7 +1,4 @@
cat zadanie3/sclite.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > results_wer.txt
# (S + D + I)/(S + D + C)
awk '{ print ($2 + $3 + $4) / ($2 + $3 + $1) }' results_wer.txt
cat zadanie3/sclite.txt | grep -e "Scores: " | awk '{ print 100.0 * ($7 + $8 + $9) / ($7 + $8 + $6) }' > zadanie3/wikiniews_results_wer.tsv
cat results_wer.txt
cp ASR-eval/wikiniews_results.tsv zadanie3/wikiniews_results.tsv