rename files and use sclite
This commit is contained in:
parent
e508a430d4
commit
b059bf99cb
@ -1,6 +1,8 @@
|
||||
|
||||
cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/sentences.txt
|
||||
cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/references.txt
|
||||
cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/hypothesis.txt
|
||||
cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/reference.txt
|
||||
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/sentences.txt > zadanie3/sentences.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/references.txt > zadanie3/references.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/hypothesis.txt > zadanie3/hypothesis.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < zadanie3/reference.txt > zadanie3/reference.trn
|
||||
|
||||
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout
|
Loading…
Reference in New Issue
Block a user