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