From 1df659069fe9d3d56a3c33802f011dfa3186d7d4 Mon Sep 17 00:00:00 2001 From: "trevor.cohn" Date: Tue, 20 Jul 2010 21:54:01 +0000 Subject: fixed typo git-svn-id: https://ws10smt.googlecode.com/svn/trunk@343 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/evaluation/entropy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gi/evaluation/entropy.py') diff --git a/gi/evaluation/entropy.py b/gi/evaluation/entropy.py index cef0dbb4..ec1ef502 100644 --- a/gi/evaluation/entropy.py +++ b/gi/evaluation/entropy.py @@ -26,8 +26,8 @@ for line in infile: tag = part.split(':',1)[1] if slash_threshold == None or tag.count('/') + tag.count('\\') <= slash_threshold: - frequencies.setdefault(gtag, 0) - frequencies[gtag] += 1 + frequencies.setdefault(tag, 0) + frequencies[tag] += 1 N += 1 h = 0 -- cgit v1.2.3