diff --git a/Jenkinsfile b/Jenkinsfile index 9c6995c..9dadd4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,8 @@ pipeline { sh label: '', script: 'chmod 777 counter.sh' sh label: '', script: './counter.sh' archiveArtifacts 'output.txt' + archiveArtifacts 'hypothesis.trn' + archiveArtifacts 'reference.trn' } } } diff --git a/counter.sh b/counter.sh index 47c385b..637b90d 100644 --- a/counter.sh +++ b/counter.sh @@ -1,8 +1,3 @@ -while IFS=$'\t' read -r -a myArray -do - echo "${myArray[1]}" >> reference.trn - echo "${myArray[2]}" >> hypothesis.trn -done < wikiniews_results.tsv - -awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < reference.txt > reference.trn +awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < wikiniews_results.tsv > reference.trn +awk '{print gensub("^\\*\\*", "\\\\**", "g", $1) "\t(sp1_"NR")"}' < wikiniews_results.tsv > hypothesis.trn sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout \ No newline at end of file