diff --git a/Jenkinsfile b/Jenkinsfile index a56eca1..d063e18 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,6 +35,11 @@ pipeline { sh './wersrrmetrics.sh' } } - + stage('Copy Metric Artifacts') { + steps { + #copyArtifacts filter: 'wer.txt', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() + #copyArtifacts filter: 'srr.txt', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful() + } + } } } \ No newline at end of file diff --git a/countmetrics.py b/countmetrics.py index e69de29..8e4568f 100644 --- a/countmetrics.py +++ b/countmetrics.py @@ -0,0 +1,5 @@ +import numpy + +with open('forWerCount.txt', 'r') as tocount: + for line in tocount: + print(line) diff --git a/wersrrmetrics.sh b/wersrrmetrics.sh index 4ca317e..268efac 100644 --- a/wersrrmetrics.sh +++ b/wersrrmetrics.sh @@ -4,6 +4,6 @@ cut -f3 'wikiniews_results.tsv' > reference.txt awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn -sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout +sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > forWerCount.txt python3 countmetrics.py \ No newline at end of file