This commit is contained in:
Kuba Kowalczyk 2019-04-26 12:44:40 +02:00
parent abfbc0fe1b
commit d00f2d10c5

View File

@ -1,2 +1,8 @@
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < wikiniews_results.tsv > reference.trn
while IFS=$'\t' read -r -a myArray
do
echo "${myArray[1]}" >> reference.trn
echo "${myArray[2]}" >> hypothesis.trn
done < wikiniews_results.tsv
awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(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