zadanie3 test8

This commit is contained in:
massta 2020-04-03 16:03:12 +02:00
parent 41cda2f327
commit 8bdb10f474

View File

@ -5,4 +5,6 @@ cut -f3 -s wikiniews_results.tsv > referencje.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < referencje.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hipotezy.txt > hypothesis.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep "Scores: "
var=$(sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep "Scores: ")
var=${var:5}
echo "$var"