summaryrefslogtreecommitdiff
path: root/gi/evaluation
diff options
context:
space:
mode:
authorbothameister <bothameister@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 23:46:42 +0000
committerbothameister <bothameister@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 23:46:42 +0000
commit232cf4e95235bc29bf04e4ea2bf1483d1baf2b7d (patch)
treed80cdd2b066ff164b6415fe05d7c198c6bba7801 /gi/evaluation
parent8c24c54cb08669e18e8b4b62859c847168ada025 (diff)
minor fix in span agreement viz
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@349 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/evaluation')
-rw-r--r--gi/evaluation/confusion_matrix.py4
1 files changed, 2 insertions, 2 deletions
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)