diff --git a/script.sh b/script.sh index 190bfa7..b48be25 100755 --- a/script.sh +++ b/script.sh @@ -1,3 +1,6 @@ #/bin/bash -wc -l $1 > results.txt \ No newline at end of file +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