sclite
This commit is contained in:
parent
d00f2d10c5
commit
d90d1a0eb0
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -8,6 +8,8 @@ pipeline {
|
|||||||
sh label: '', script: 'chmod 777 counter.sh'
|
sh label: '', script: 'chmod 777 counter.sh'
|
||||||
sh label: '', script: './counter.sh'
|
sh label: '', script: './counter.sh'
|
||||||
archiveArtifacts 'output.txt'
|
archiveArtifacts 'output.txt'
|
||||||
|
archiveArtifacts 'hypothesis.trn'
|
||||||
|
archiveArtifacts 'reference.trn'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
while IFS=$'\t' read -r -a myArray
|
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < wikiniews_results.tsv > reference.trn
|
||||||
do
|
awk '{print gensub("^\\*\\*", "\\\\**", "g", $1) "\t(sp1_"NR")"}' < wikiniews_results.tsv > hypothesis.trn
|
||||||
echo "${myArray[1]}" >> reference.trn
|
|
||||||
echo "${myArray[2]}" >> hypothesis.trn
|
|
||||||
done < wikiniews_results.tsv
|
|
||||||
|
|
||||||
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(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
|
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout
|
Loading…
Reference in New Issue
Block a user