diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-30 02:41:55 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-06-30 02:41:55 +0000 |
commit | 4b16ee8fc6ab15dd6b4a438a7a57fe12e9721b16 (patch) | |
tree | b18332e34f8af56ef426891787310dd65a9a7e7e | |
parent | 767e0c98265ba25a8f5dbdc75b5998e4ed2ff08c (diff) |
fix bug
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@75 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-x | gi/pyp-topics/scripts/spans2labels.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pyp-topics/scripts/spans2labels.py b/gi/pyp-topics/scripts/spans2labels.py index 402bcd63..09f879d0 100755 --- a/gi/pyp-topics/scripts/spans2labels.py +++ b/gi/pyp-topics/scripts/spans2labels.py @@ -40,6 +40,6 @@ for line in sys.stdin: right_context = reduce(lambda x, y: x+y+" ", target[t2:t2+order], "").strip() context = "%s<PHRASE> %s" % (left_context, right_context) - label = phrase_context_index.get((phrase,context, "<UNK>") + label = phrase_context_index.get((phrase,context), "<UNK>") print "%s-%s:X%s" % (t1-order,t2-order,label), print |