From 0e126beea093457c35479d8f4cb43934ec8ecf9d Mon Sep 17 00:00:00 2001 From: redpony Date: Wed, 30 Jun 2010 02:41:55 +0000 Subject: fix bug git-svn-id: https://ws10smt.googlecode.com/svn/trunk@75 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/pyp-topics/scripts/spans2labels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gi') 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 %s" % (left_context, right_context) - label = phrase_context_index.get((phrase,context, "") + label = phrase_context_index.get((phrase,context), "") print "%s-%s:X%s" % (t1-order,t2-order,label), print -- cgit v1.2.3