wyciagniecie z metryk c s d i

This commit is contained in:
alicja.m.musial 2020-04-03 14:21:46 +02:00
parent dd50228f6c
commit 39dcc92771

View File

@ -6,4 +6,4 @@ 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 -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep "Scores:" | sed 's/Scores: (#C #S #D #I) //'