sclite
This commit is contained in:
parent
abfbc0fe1b
commit
d00f2d10c5
@ -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
|
Loading…
Reference in New Issue
Block a user