zad3 - test1

This commit is contained in:
s452108 2020-04-03 13:39:37 +02:00
parent affe5e5e0e
commit 9f46733b4e

View File

@ -1,2 +1,8 @@
#!/bin/bash
wc -l $1 > file.txt
cut -f2 -s wikiniews_results.tsv > hipotezy.txt
cut -f3 -s wikiniews_results.tsv > referencje.txt
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < referencje.txt > reference.trn
awk 'BEGIN{FS=OFS="\t"}{print $0,"(sp1_"NR")"}' < hipotezy.txt > hipothesis.trn
sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout