Prześlij pliki do ''
This commit is contained in:
parent
95d86958f7
commit
32fbb7b9b3
@ -4,7 +4,7 @@ cut -f 3 wikiniews_results.tsv > hypothesis.txt
|
|||||||
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
|
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 > sclite.txt
|
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > wynik.txt
|
||||||
grep 'Scores:' wynik.txt | awk '{print $6, $7, $8, $9}' > scores.txt
|
grep 'Scores:' wynik.txt | awk '{print $6, $7, $8, $9}' > scores.txt
|
||||||
|
|
||||||
awk '{ print ($2 + $3 + $4) / ($2 + $3 + $1) }' scores.txt > WER.txt
|
awk '{ print ($2 + $3 + $4) / ($2 + $3 + $1) }' scores.txt > WER.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user