Add counting metrics

This commit is contained in:
Gabriela Pałka 2020-04-03 13:08:35 +02:00
parent 8ad00f9ab4
commit 9883da7397

View File

@ -1,3 +1,6 @@
#/bin/bash
wc -l $1 > results.txt
cut -f2 $1 | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > hypothesis.trn
cut -f3 $1 | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > results.txt