get WER
This commit is contained in:
parent
1fb0be242b
commit
82f05c6139
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user