change jenkinsfile

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

2
Jenkinsfile vendored
View File

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

View File

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