diff --git a/Jenkinsfile b/Jenkinsfile index 397a750..3568ce7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ pipeline { { steps{ copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() - copyArtifacts filter: 'srr.txt wer.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful() + copyArtifacts filter: 'srr2.txt wer2.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful() } } @@ -34,8 +34,8 @@ pipeline { stage("Result") { steps{ - archiveArtifacts 'srr.txt' - archiveArtifacts 'wer.txt' + archiveArtifacts 'srr2.txt' + archiveArtifacts 'wer2.txt' archiveArtifacts 'newresults.tsv' archiveArtifacts 'hypothesis.trn' archiveArtifacts 'reference.trn' diff --git a/count.sh b/count.sh index 88a44e5..d29b70c 100644 --- a/count.sh +++ b/count.sh @@ -13,5 +13,5 @@ COUNT_DIFF=$(diff hypothesis.trn reference.trn | grep "^>" | wc -l) echo $COUNT_DIFF let RESULT=$COUNT_DIFF/$COUNT -echo $(echo"$COUNT_DIFF/$COUNT" | bc -l) >> srr.txt -echo "$(tail -50 "srr.txt")" > srr.txt +echo $(echo"$COUNT_DIFF/$COUNT" | bc -l) >> srr2.txt +echo "$(tail -50 "srr2.txt")" > srr2.txt diff --git a/script.py b/script.py index 06342ce..38ed99d 100644 --- a/script.py +++ b/script.py @@ -26,5 +26,5 @@ with open('wikiniews_results.tsv','r') as f_in: writer.writerows(result) -file = open("wer.txt", "a") +file = open("wer2.txt", "a") file.write(str(score) + "\n")