From bdeedbe36689ccf7fb2d09c285ca0156a0db2ed3 Mon Sep 17 00:00:00 2001 From: Ufnow Date: Tue, 21 Apr 2020 23:27:14 +0200 Subject: [PATCH] ert --- Jenkinsfile | 2 +- script.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bcfeef4..393a75a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline { } stage('archiveArtifacts') { steps { - archiveArtifacts 'countlines_result.txt' + archiveArtifacts 'CountResult.txt' } } } diff --git a/script.sh b/script.sh index 8025373..430f565 100644 --- a/script.sh +++ b/script.sh @@ -1 +1,9 @@ -wc -l wikiniews_results.tsv > numberOfLines.txt \ No newline at end of file +wc -l wikiniews_results.tsv > CountResult.txt + +cut -f2 wikiniews_results.tsv > hypothesis.txt +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