From 8214f16d565121c63f70c66c909847e505723f1f Mon Sep 17 00:00:00 2001 From: Adrianna Zaleska Date: Sun, 19 Apr 2020 22:06:11 +0200 Subject: [PATCH] srr fixed --- hypothesis.trn | 0 hypothesis.txt | 0 reference.trn | 0 reference.txt | 0 scores | 0 script.sh | 4 +++- srr.txt | 0 wer.tsv | 0 wer.txt | 0 wikiniews_results_with_wer.tsv | 0 10 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 hypothesis.trn create mode 100644 hypothesis.txt create mode 100644 reference.trn create mode 100644 reference.txt create mode 100644 scores create mode 100644 srr.txt create mode 100644 wer.tsv create mode 100644 wer.txt create mode 100644 wikiniews_results_with_wer.tsv diff --git a/hypothesis.trn b/hypothesis.trn new file mode 100644 index 0000000..e69de29 diff --git a/hypothesis.txt b/hypothesis.txt new file mode 100644 index 0000000..e69de29 diff --git a/reference.trn b/reference.trn new file mode 100644 index 0000000..e69de29 diff --git a/reference.txt b/reference.txt new file mode 100644 index 0000000..e69de29 diff --git a/scores b/scores new file mode 100644 index 0000000..e69de29 diff --git a/script.sh b/script.sh index 5f35952..4a930ef 100644 --- a/script.sh +++ b/script.sh @@ -10,6 +10,8 @@ paste wikiniews_results.tsv wer.tsv > wikiniews_results_with_wer.tsv tail -n 50 wer.txt >> wer_tmp.txt rm wer.txt mv wer_tmp.txt wer.txt -tail -n 50 srr.txt >> srr.txt +tail -n 50 srr.txt >> srr_tmp.txt +rm srr.txt +mv srr_tmp.txt srr.txt awk 'BEGIN{FS=OFS="\t"}{ bad = bad + $1; all++ }END{ print bad/all }' < wer.tsv >> wer.txt awk 'BEGIN{FS=OFS="\t"}{ if ( $1 == 0 ) good++; all++ }END{ print good/all }' < wer.tsv >> srr.txt \ No newline at end of file diff --git a/srr.txt b/srr.txt new file mode 100644 index 0000000..e69de29 diff --git a/wer.tsv b/wer.tsv new file mode 100644 index 0000000..e69de29 diff --git a/wer.txt b/wer.txt new file mode 100644 index 0000000..e69de29 diff --git a/wikiniews_results_with_wer.tsv b/wikiniews_results_with_wer.tsv new file mode 100644 index 0000000..e69de29