2019-04-26 16:32:23 +02:00
|
|
|
#C #S #D #I - $6 $7 $8 $9
|
|
|
|
|
|
|
|
|
|
|
|
# (S + D + I)/(S + D + C) WER
|
2019-04-26 16:54:01 +02:00
|
|
|
cat zadanie3/sclite.txt | grep -e "Scores: " | awk '{ print ($7 + $8 + $9) / ($7 + $8 + $6) }' > zadanie3/wikiniews_results_wer.tsv
|
2019-04-26 16:01:09 +02:00
|
|
|
|
2019-04-26 16:15:39 +02:00
|
|
|
cp ASR-eval/wikiniews_results.tsv zadanie3/wikiniews_results.tsv
|
2019-04-26 16:23:39 +02:00
|
|
|
paste zadanie3/wikiniews_results_wer.tsv zadanie3/wikiniews_results.tsv
|
2019-04-26 16:32:23 +02:00
|
|
|
|
|
|
|
## SSR
|
2019-04-26 16:54:01 +02:00
|
|
|
cat zadanie3/sclite.txt | grep -e "Scores: " | awk '{all++ ; if ($7 == 0 && $8 == 0 && $9 == 0) good += 1 } END { print good/all }' > zadanie3/ssr.txt
|
2019-04-26 16:32:23 +02:00
|
|
|
|
2019-04-26 16:42:10 +02:00
|
|
|
## AVG WER
|
|
|
|
cat zadanie3/wikiniews_results_wer.tsv | awk '{ nr++; sum += $1 } END { print sum/nr}' > zadanie3/avg.txt
|