message
This commit is contained in:
parent
6ea807b2e0
commit
3c1ff58b6f
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -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'
|
||||||
|
2
count.sh
2
count.sh
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user