change jenkinsfile

This commit is contained in:
dylodylo 2020-04-03 14:16:40 +02:00
parent f16764e5f5
commit 18c4d5821c
2 changed files with 11 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
}
}
stage("Script")
stage("RunScript")
{
steps{
sh label:"", script:"bash ./count.sh"

View File

@ -1,3 +1,12 @@
#!/bin/bash
wc -l wikiniews_results.tsv > result.txt
myfile = wikiniews_results.tsv
#wc -l $myfile > result.txt
# create trn
cut -f2 $myfile | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > hypothesis.trn
cut -f3 $myfile | awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' > reference.trn
#wer for each line
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > results.txt