This commit is contained in:
s460941 2020-04-23 21:21:31 +02:00
parent 6ea807b2e0
commit 3c1ff58b6f
2 changed files with 1 additions and 3 deletions

2
Jenkinsfile vendored
View File

@ -13,8 +13,6 @@ pipeline {
{ {
steps { steps {
sh label:"", script:"bash ./count.sh" sh label:"", script:"bash ./count.sh"
archiveArtifacts 'hypothesis.txt'
archiveArtifacts 'reference.txt'
archiveArtifacts 'lines_number.txt' archiveArtifacts 'lines_number.txt'
archiveArtifacts 'wer_results.txt' archiveArtifacts 'wer_results.txt'
archiveArtifacts 'wer.txt' archiveArtifacts 'wer.txt'

View File

@ -5,8 +5,8 @@ echo $lines > "lines_number.txt"
cut -f2 wikiniews_results.tsv > hypothesis.txt cut -f2 wikiniews_results.tsv > hypothesis.txt
cut -f3 wikiniews_results.tsv > reference.txt cut -f3 wikiniews_results.tsv > reference.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn 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 | grep Scores > Scores sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep Scores > Scores