metryki
This commit is contained in:
parent
421af8a5b8
commit
92f54f031a
8
lines.sh
8
lines.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user