Wywołanie SCLITE
This commit is contained in:
parent
a17752ac88
commit
5ce51053e9
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -12,7 +12,14 @@ pipeline {
|
||||
sh label: '', script: './kody.sh'
|
||||
sh label: '', script: 'ls -l'
|
||||
archiveArtifacts 'plik1'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Stage 2') {
|
||||
steps {
|
||||
echo 'Metryki'
|
||||
sh label: '', script: 'chmod 755 ./kody-metryki.sh'
|
||||
sh label: '', script: './kody-metryki.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
8
kody-metryki.sh
Normal file
8
kody-metryki.sh
Normal file
@ -0,0 +1,8 @@
|
||||
cut -f 2 wikiniews_results.tsv > reference.txt
|
||||
cut -f 3 wikiniews_results.tsv > hypothesis.txt
|
||||
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(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 > wynik.txt
|
||||
cat wynik.txt
|
Loading…
Reference in New Issue
Block a user