From b90c70b28ad94f797fff9787abda7c403ab28cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Szuka=C5=82a?= Date: Fri, 26 Apr 2019 12:30:39 +0200 Subject: [PATCH] task3 --- counter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/counter.sh b/counter.sh index 14a7850..fdb62f2 100644 --- a/counter.sh +++ b/counter.sh @@ -1 +1,2 @@ -wc -l wikiniews_results.tsv >> txt.txt +awk '{print gensub("^\\*\\*", "\\\\**", "g", $0) "\t(sp1_"NR")"}' < wikinews_results.tsv > reference.trn +sclite -f 0 -r reference.trn trn -h hypothesis.trn trn -e utf-8 -i rm -o all stdout