update Jenkinsfile

This commit is contained in:
dylodylo 2020-04-10 18:51:22 +02:00
parent 88d7237757
commit a04be259c5
3 changed files with 6 additions and 6 deletions

6
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ pipeline {
{ {
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: 'srr3.txt wer2.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful() copyArtifacts filter: 'srr_results.txt wer_resulsts.txt', fingerprintArtifacts: true, projectName: 's460929-metrics', optional: true, selector: lastSuccessful()
} }
} }
@ -34,8 +34,8 @@ pipeline {
stage("Result") stage("Result")
{ {
steps{ steps{
archiveArtifacts 'srr3.txt' archiveArtifacts 'srr_results.txt'
archiveArtifacts 'wer2.txt' archiveArtifacts 'wer_results.txt'
archiveArtifacts 'newresults.tsv' archiveArtifacts 'newresults.tsv'
archiveArtifacts 'hypothesis.trn' archiveArtifacts 'hypothesis.trn'
archiveArtifacts 'reference.trn' archiveArtifacts 'reference.trn'

View File

@ -12,5 +12,5 @@ echo wer.txt | sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -
COUNT_DIFF=$(diff hypothesis.trn reference.trn | grep "^>" | wc -l) COUNT_DIFF=$(diff hypothesis.trn reference.trn | grep "^>" | wc -l)
echo $COUNT_DIFF echo $COUNT_DIFF
echo $(echo "$COUNT_DIFF/$COUNT" | bc -l) >> srr3.txt echo $(echo "$COUNT_DIFF/$COUNT" | bc -l) >> srr_results.txt
echo "$(tail -50 "srr3.txt")" > srr3.txt echo "$(tail -50 "srr3.txt")" > srr_results.txt

View File

@ -26,5 +26,5 @@ with open('wikiniews_results.tsv','r') as f_in:
writer.writerows(result) writer.writerows(result)
file = open("wer2.txt", "a") file = open("wer_results.txt", "a")
file.write(str(score) + "\n") file.write(str(score) + "\n")