calcuate metrics

This commit is contained in:
Małgorzata Schmidt 2019-04-26 13:29:36 +02:00
parent a22dc93fc6
commit 8994eb56bd

View File

@ -5,3 +5,5 @@ cut -f3 $file1 > hypothesis.txt
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(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