zad3
This commit is contained in:
commit
29508333fa
@ -4,14 +4,12 @@
|
||||
wc -l wikiniews_results.tsv > counted_lines_result.txt
|
||||
|
||||
#zad 3
|
||||
|
||||
cut --fields=2 wikiniews_results.tsv > hypothesis.txt
|
||||
cut --fields=3 wikiniews_results.tsv > reference.txt
|
||||
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hypothesis.txt > hypothesis.trn
|
||||
awk 'BEGIN{FS=OFS="\t"}{print $0,"(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 | grep Score > results
|
||||
|
||||
# #C #S #D #I do obliczen WER
|
||||
|
Loading…
Reference in New Issue
Block a user