2019-04-26 15:02:00 +02:00
|
|
|
|
2019-04-26 15:04:27 +02:00
|
|
|
cut -f 2 ASR-eval/wikiniews_results.tsv > zadanie3/hypothesis.txt
|
|
|
|
cut -f 3 ASR-eval/wikiniews_results.tsv > zadanie3/reference.txt
|
2019-04-26 15:02:00 +02:00
|
|
|
|
2019-04-26 15:04:27 +02:00
|
|
|
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
|
|
|
|
|
2019-04-26 16:01:09 +02:00
|
|
|
sclite -f 0 -r zadanie3/reference.trn trn -h zadanie3/hypothesis.trn trn -e utf-8 -i rm -o all stdout > zadanie3/sclite.txt
|