From b059bf99cbc74185dee97df2e9a734e328b4a83b Mon Sep 17 00:00:00 2001 From: s407323 Date: Fri, 26 Apr 2019 15:04:27 +0200 Subject: [PATCH] rename files and use sclite --- zadanie3/trn.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/zadanie3/trn.sh b/zadanie3/trn.sh index d6409ea..f52c7f8 100644 --- a/zadanie3/trn.sh +++ b/zadanie3/trn.sh @@ -1,6 +1,8 @@ -cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/sentences.txt -cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/references.txt +cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/hypothesis.txt +cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/reference.txt -awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/sentences.txt > zadanie3/sentences.trn -awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/references.txt > zadanie3/references.trn \ No newline at end of file +awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/hypothesis.txt > zadanie3/hypothesis.trn +awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/reference.txt > zadanie3/reference.trn + +sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout \ No newline at end of file