diff --git a/createWERandSRRFiles.py b/createWERandSRRFiles.py index f61ed3c..2892cf4 100644 --- a/createWERandSRRFiles.py +++ b/createWERandSRRFiles.py @@ -1,2 +1,2 @@ -txt = input() -print(txt) \ No newline at end of file +file = open("helper.txt", "r") +print(txt.read()) \ No newline at end of file diff --git a/metrics.sh b/metrics.sh index bccc99d..88a70ae 100644 --- a/metrics.sh +++ b/metrics.sh @@ -8,6 +8,6 @@ awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.tr sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > helper.txt -python ./createWERandSRRFiles.py < helper.txt +python ./createWERandSRRFiles.py