s452094-mlworkshops/get_wer_lines.sh

7 lines
241 B
Bash
Raw Normal View History

2020-04-03 16:31:06 +02:00
cat result.txt | grep -i -w "Scores: (#C #S #D #I)" | cut -c23- | awk '{print (($2 + $3 + $4)/($2 + $3 + $1))*100;}' > wer_lines.txt
2020-04-03 17:36:04 +02:00
paste -d ' ' wikiniews_results.tsv wer_lines.txt > tmp.tsv
2020-04-03 17:33:45 +02:00
cat tmp.tsv > wikiniews_results.tsv
rm tmp.tsv
2020-04-03 16:31:06 +02:00