commit 0ffa05ac31f05b67f797c2e70359f07bd9d0f3bb Author: Natasha Singh Date: Mon Jul 17 11:39:12 2023 -0400 Deleting coverage.sh diff --git a/coverage.sh b/coverage.sh deleted file mode 100755 index ec0aa43..0000000 --- a/coverage.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -cat corpus.txt | apertium -d . kfy-morph | apertium-cleanstream -n > corpus_ana.txt - -total=`cat corpus_ana.txt | wc -l` -known=`grep -vc '*' corpus_ana.txt` -unk=`grep -c '*' corpus_ana.txt` -percent=`echo "100 * $known / $total" | bc` - -echo "coverage: ${percent}% ($known/$total)" - -echo "" -echo "unknown forms: $unk" - -echo "" -echo "top unknown forms:" - -cat corpus_ana.txt | grep '*' | sort | uniq -c | sort -nr | head -n25 -