SCLITE config

This commit is contained in:
Damian Michalski 2020-04-03 13:56:48 +02:00
parent 790f750aca
commit 9fd9095c1a
4 changed files with 12 additions and 3 deletions

9
Jenkinsfile vendored
View File

@ -11,9 +11,14 @@ pipeline {
copyArtifacts filter: '*.tsv', fingerprintArtifacts: true, projectName: 'ASR-eval', selector: lastSuccessful()
}
}
stage('Shell') {
stage('Get data') {
steps {
sh label: 'count lines', script: './count.sh'
sh label: 'count lines', script: './get_data.sh'
}
}
stage('SCLITE') {
steps {
sh label: 'count lines', script: './sclite.sh'
}
}
stage('Archive artifacts') {

View File

@ -1 +0,0 @@
wc -l wikiniews_results.tsv > result.txt

3
get_data.sh Executable file
View File

@ -0,0 +1,3 @@
cat wikiniews_results.tsv | cut -f2 -s > hypothesis.txt
cat wikiniews_results.tsv | cut -f3 -s > references.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < reference.txt > reference.trn

2
sclite.sh Executable file
View File

@ -0,0 +1,2 @@
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout