update count and scripy

This commit is contained in:
dylodylo 2020-04-10 15:18:37 +02:00
parent 73f323afce
commit 7a5478d787
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
import csv
file = open("results.txt", "r")
file = open("wer.txt", "r")
scores = []
for f in file: