Add appending to wer and srr

This commit is contained in:
Gabriela Pałka 2020-04-03 14:20:52 +02:00
parent 273cac1b98
commit b9d52bf3d8
2 changed files with 3 additions and 2 deletions

1
Jenkinsfile vendored
View File

@ -9,6 +9,7 @@ pipeline {
stage('copyArtifacts') { stage('copyArtifacts') {
steps { steps {
copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval/' copyArtifacts filter: 'wikiniews_results.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval/'
copyArtifacts filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's407599-metrics'
} }
} }
stage('Shell script') { stage('Shell script') {

View File

@ -6,8 +6,8 @@ if __name__ == '__main__':
correct_sentences = 0 correct_sentences = 0
with open(sys.argv[1], 'r') as sclite_result, \ with open(sys.argv[1], 'r') as sclite_result, \
open('wer.txt', 'w') as wer, \ open('wer.txt', 'a+') as wer, \
open('srr.txt', 'w') as srr: open('srr.txt', 'a+') as srr:
for line in sclite_result: for line in sclite_result:
complited = False complited = False