From 18246174a80dd7c2c95489cbdc25e5bd1c54afd6 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 3 Apr 2020 13:46:43 +0200 Subject: [PATCH] jenkinsfile --- Dockerfile | 1 + metrics.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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