diff --git a/count_lines.sh b/count_lines.sh index a215fcf..3c3a81f 100644 --- a/count_lines.sh +++ b/count_lines.sh @@ -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 @@ -29,4 +27,4 @@ rm wer.txt rm srr.txt mv wer1.txt wer.txt -mv srr1.txt srr.txt \ No newline at end of file +mv srr1.txt srr.txt