change jenkinsfile
This commit is contained in:
parent
18c4d5821c
commit
4740133146
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -16,7 +16,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage("RunScript")
|
stage("Script")
|
||||||
{
|
{
|
||||||
steps{
|
steps{
|
||||||
sh label:"", script:"bash ./count.sh"
|
sh label:"", script:"bash ./count.sh"
|
||||||
|
6
count.sh
6
count.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user