Task 3 - metrics - starting point
This commit is contained in:
parent
554bf3e89f
commit
fc726bb064
@ -9,5 +9,5 @@ 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
|
||||
|
||||
# use sclite to calculate WER
|
||||
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > wer_results.txt
|
||||
# use sclite to calculate WER, actually we need only lines starting with 'Scores'
|
||||
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout | grep "Scores:" > wer_results.txt
|
||||
|
1247
wer_results.txt
Normal file
1247
wer_results.txt
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user