From 232cf4e95235bc29bf04e4ea2bf1483d1baf2b7d Mon Sep 17 00:00:00 2001 From: bothameister Date: Tue, 20 Jul 2010 23:46:42 +0000 Subject: minor fix in span agreement viz git-svn-id: https://ws10smt.googlecode.com/svn/trunk@349 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/evaluation/confusion_matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gi/evaluation') diff --git a/gi/evaluation/confusion_matrix.py b/gi/evaluation/confusion_matrix.py index c5e2a379..55cad256 100644 --- a/gi/evaluation/confusion_matrix.py +++ b/gi/evaluation/confusion_matrix.py @@ -6,7 +6,7 @@ def usage(): print >>sys.stderr, 'Usage:', sys.argv[0], '[-s slash_threshold] [-p output] [-m] input-1 input-2' sys.exit(0) -optlist, args = getopt.getopt(sys.argv[1:], 'hs:') +optlist, args = getopt.getopt(sys.argv[1:], 'hs:mp:') slash_threshold = None output_fname = None show_matrix = False @@ -91,8 +91,8 @@ if output_fname: #hsl(hue, saturation%, lightness%) # re-sort preds to get a better diagonal + ptags=[] if False: - ptags = [] remaining = set(predict_frequencies.keys()) for y, (gtag, gcount) in enumerate(gtags): best = (None, 0) -- cgit v1.2.3