From 3bae0e0f2576e53569b0027253aaa7fc1c3eb36e Mon Sep 17 00:00:00 2001 From: Ufnow Date: Tue, 21 Apr 2020 23:32:46 +0200 Subject: [PATCH] Metrics --- Jenkinsfile | 9 +++++++++ script.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 393a75a..ec7b9a0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,15 @@ pipeline { stage('archiveArtifacts') { steps { archiveArtifacts 'CountResult.txt' + archiveArtifacts 'wyniki' + archiveArtifacts 'reference.txt' + archiveArtifacts 'hypothesis.trn' + archiveArtifacts 'hypothesis.txt' + archiveArtifacts 'reference.txt' + archiveArtifacts 'wer_all.txt' + archiveArtifacts 'wer.txt' + archiveArtifacts 'srr.txt' + archiveArtifacts 'wikinews_results.tsv' } } } diff --git a/script.sh b/script.sh index 430f565..a2e6bf9 100644 --- a/script.sh +++ b/script.sh @@ -6,4 +6,4 @@ cut -f3 wikiniews_results.tsv > reference.txt awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn -sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep 'Scores' > results \ No newline at end of file +sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep 'Scores' > wyniki \ No newline at end of file