This commit is contained in:
Kamil Paprota 2020-04-03 14:31:09 +02:00
parent 421af8a5b8
commit 92f54f031a

View File

@ -1,11 +1,9 @@
wc -l wikiniews_results.tsv > lines_number.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
cut -f3 wikiniews_results.tsv > reference.txt
cut -f2 wikiniews_results.tsv > hypothesis.txt
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > sclite.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
python ./CreateMetricFiles.py
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout > sclite.txt