From 960d8839e8e604fed13fe91bdcf698baec3f750e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C5=82gorzata=20Schmidt?= Date: Fri, 26 Apr 2019 14:54:49 +0200 Subject: [PATCH] evaluation split --- evaluation.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evaluation.sh b/evaluation.sh index 1de8a11..f6c249f 100644 --- a/evaluation.sh +++ b/evaluation.sh @@ -7,3 +7,5 @@ awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > sclite_results.txt + +cat sclite_results.txt | grep -oP '(?<=Scores: \(#C #S #D #I\) ).*' > to_wer.txt