This commit is contained in:
Kamil Paprota 2020-04-03 16:37:11 +02:00
parent 0e503074d5
commit 63ef809c9a
2 changed files with 23 additions and 2 deletions

21
JenkinsfilePlots Normal file
View File

@ -0,0 +1,21 @@
pipeline {
agent { dockerfile true }
stages {
stage('Hello') {
steps {
echo 'Hello World'
echo 'Trigger Check'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Default', submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s416267/s416267-mlworkshops']]])
copyArtifacts fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
sh('chmod +x ./lines.sh')
sh('./lines.sh')
archiveArtifacts 'lines_number.txt'
archiveArtifacts 'wer.txt'
archiveArtifacts 'srr.txt'
archiveArtifacts 'wer.tsv'
archiveArtifacts 'wikiniews_results_with_wer.tsv'
}
}
}
}

View File

@ -6,8 +6,8 @@ cut -f3 wikiniews_results.tsv > reference.txt
mv wer.txt wer1.txt mv wer.txt wer1.txt
mv srr.txt srr1.txt mv srr.txt srr1.txt
cat wer1.txt | tail -n 6 > wer.txt cat wer1.txt | tail -n 99 > wer.txt
cat srr1.txt | tail -n 6 > srr.txt cat srr1.txt | tail -n 99 > srr.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn