This commit is contained in:
Ufnow 2020-04-21 23:27:14 +02:00
parent 87445a50b7
commit bdeedbe366
2 changed files with 10 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -19,7 +19,7 @@ pipeline {
} }
stage('archiveArtifacts') { stage('archiveArtifacts') {
steps { steps {
archiveArtifacts 'countlines_result.txt' archiveArtifacts 'CountResult.txt'
} }
} }
} }

View File

@ -1 +1,9 @@
wc -l wikiniews_results.tsv > numberOfLines.txt wc -l wikiniews_results.tsv > CountResult.txt
cut -f2 wikiniews_results.tsv > hypothesis.txt
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 | grep 'Scores' > results