pasting wer with results

This commit is contained in:
Małgorzata Schmidt 2019-04-26 15:13:10 +02:00
parent 5286cae83b
commit 7f5dacf0d6

View File

@ -11,3 +11,5 @@ sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all std
cat sclite_results.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > to_wer.txt cat sclite_results.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > to_wer.txt
awk '{ print ($2 + $3 + $4)/($2 + $3 + $1)}' to_wer.txt > wer.txt awk '{ print ($2 + $3 + $4)/($2 + $3 + $1)}' to_wer.txt > wer.txt
paste $file1 wer.txt > wikiniews_results2.tsv