From 7a5478d7879f8f605e57d1ceb39d2e0ccf8257c4 Mon Sep 17 00:00:00 2001 From: dylodylo Date: Fri, 10 Apr 2020 15:18:37 +0200 Subject: [PATCH] update count and scripy --- count.sh | 1 - script.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/count.sh b/count.sh index 6ed02d6..a382468 100644 --- a/count.sh +++ b/count.sh @@ -9,7 +9,6 @@ cut -f3 $MYFILE | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.tr #wer for each line echo wer.txt | sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout >> wer.txt -echo "$(tail -50 "wer.txt")" > srr.txt COUNT_DIFF=$(diff hypothesis.trn reference.trn | grep "^>" | wc -l) echo $COUNT_DIFF diff --git a/script.py b/script.py index caec2d4..1dccdee 100644 --- a/script.py +++ b/script.py @@ -1,5 +1,5 @@ import csv -file = open("results.txt", "r") +file = open("wer.txt", "r") scores = [] for f in file: