From 9f46733b4ec8ad18d7aa542358c8d8bdba3b14cf Mon Sep 17 00:00:00 2001 From: s452108 Date: Fri, 3 Apr 2020 13:39:37 +0200 Subject: [PATCH] zad3 - test1 --- count.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/count.sh b/count.sh index d165aa9..452f40c 100755 --- a/count.sh +++ b/count.sh @@ -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