Metryki4
This commit is contained in:
parent
5b92dcff10
commit
acb68e6a58
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -34,7 +34,10 @@ pipeline {
|
|||||||
|
|
||||||
stage('WER & SRR') {
|
stage('WER & SRR') {
|
||||||
steps {
|
steps {
|
||||||
sh 'sh metryki.sh'
|
cat Infra/wikiniews_results.tsv | cut -d ',' -f3 > reference.txt
|
||||||
|
cat Infra/wikiniews_results.tsv | cut -d ',' -f2 > hypothesis.txt
|
||||||
|
sh 'sh metryki.sh' reference.txt reference.trn
|
||||||
|
sh 'sh metryki.sh' hypothesis.txt hypothesis.trn
|
||||||
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
|
sh 'sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn
|
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < $1 > $2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user