diff --git a/Dockerfile b/Dockerfile index 9b6b59c..0970056 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,7 @@ FROM ubuntu:latest RUN apt update -y && apt install -y make RUN apt install -y git +RUN apt install -y python RUN apt install -y gcc RUN gcc --version RUN apt install -y build-essential diff --git a/metrics.sh b/metrics.sh index b89a6d6..bccc99d 100644 --- a/metrics.sh +++ b/metrics.sh @@ -6,6 +6,8 @@ cut -f2 wikiniews_results.tsv > hypothesis.txt awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn -python ./createWERandSRRFiles.py < sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout +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