zad4 test1

This commit is contained in:
massta 2020-04-05 17:39:19 +02:00
parent 7c0c6f6d3b
commit c6c1d670f9
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt cat output.txt | awk '{print (($7 + $8 + $9)/($7 + $8 + $6))*100;}' > clear.txt
paste -d ' ' wikiniews_results.tsv clear.txt > support.tsv paste -d ' ' wikiniews_results.tsv clear.txt > support.tsv
cat support.tsv > wikiniews_results.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) all=$(cat clear.txt | wc -l)
srr=$(echo "($srr_matching/$all)*100" | bc -l) srr=$(echo "($srr_matching/$all)*100" | bc -l)
echo "$avg%" >> average.txt
echo "$srr%" >> average.txt
echo "Avg WER: $avg%" >> clear.txt echo "Avg WER: $avg%" >> clear.txt
echo "SRR: $srr%" >> clear.txt echo "SRR: $srr%" >> clear.txt

View File

@ -9,6 +9,7 @@ pipeline {
stage('Copy Artifacts') { stage('Copy Artifacts') {
steps { steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() 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') { stage('Count words') {
@ -20,6 +21,7 @@ sh label: '', script: './count2.sh wikiniews_results.tsv'
stage('Archive atifacts') { stage('Archive atifacts') {
steps { steps {
archiveArtifacts 'clear.txt' archiveArtifacts 'clear.txt'
archiveArtifacts 'average.txt'
archiveArtifacts 'wikiniews_results.tsv' archiveArtifacts 'wikiniews_results.tsv'
} }
} }