diff options
author | trevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 21:54:01 +0000 |
---|---|---|
committer | trevor.cohn <trevor.cohn@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 21:54:01 +0000 |
commit | dedfa33b198c8bbb4af879efe73607f2dc4de584 (patch) | |
tree | 97d5cd2b6cf0ff78e58d627b28d53eaf70e5ed0a /gi/evaluation/entropy.py | |
parent | cd5d8e0ab902a0c87e108b863aca2888248a4516 (diff) |
fixed typo
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@343 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/evaluation/entropy.py')
-rw-r--r-- | gi/evaluation/entropy.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |