diff --git a/count2.sh b/count2.sh index 6ca1944..5961a3b 100755 --- a/count2.sh +++ b/count2.sh @@ -1,6 +1,7 @@ #!/bin/bash cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt + paste -d ' ' wikiniews_results.tsv clear.txt > support.tsv cat support.tsv > wikiniews_results.tsv @@ -10,5 +11,10 @@ srr_matching=$(grep -x "0" clear.txt | wc -l) all=$(cat clear.txt | wc -l) srr=$(echo "($srr_matching/$all)*100" | bc -l) +echo "$avg%" >> average.txt +echo "$srr%" >> average.txt + echo "Avg WER: $avg%" >> clear.txt echo "SRR: $srr%" >> clear.txt + + diff --git a/jenkinsfile b/jenkinsfile index 25269ee..e8609cf 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -9,6 +9,7 @@ pipeline { stage('Copy Artifacts') { steps { copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() +copyArtifacts filter: 'average.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful() } } stage('Count words') { @@ -20,6 +21,7 @@ sh label: '', script: './count2.sh wikiniews_results.tsv' stage('Archive atifacts') { steps { archiveArtifacts 'clear.txt' +archiveArtifacts 'average.txt' archiveArtifacts 'wikiniews_results.tsv' } }