change function in evaluation.sh

This commit is contained in:
Małgorzata Schmidt 2019-04-26 13:35:03 +02:00
parent 8994eb56bd
commit a528bb4573

View File

@ -3,7 +3,7 @@ file1=$1
cut -f2 $file1 > reference.txt
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
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