This commit is contained in:
Karolina Krzywda 2020-04-17 20:15:22 +02:00
parent e47ba086c1
commit 71416d2e80
2 changed files with 4 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -11,6 +11,7 @@ pipeline {
archiveArtifacts 'liczbalinijek.txt'
archiveArtifacts 'hypothesis.txt'
archiveArtifacts 'reference.txt'
archiveArtifacts 'Sclite'
}
}
}

View File

@ -2,3 +2,6 @@ wc -l wikiniews_results.tsv > liczbalinijek.txt
cut -f2 wikiniews_results.tsv > hypothesis.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
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > Sclite