summaryrefslogtreecommitdiff
path: root/gi/pyp-topics/scripts
diff options
context:
space:
mode:
authorphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-02 20:07:37 +0000
committerphilblunsom <philblunsom@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-02 20:07:37 +0000
commit276634a6b3b1505ee2047d361e128c7e9c6d53e5 (patch)
treea3cf169fcf75f3523f82775b68e210d0fb626301 /gi/pyp-topics/scripts
parent7f772c1ade536ae1e51a1da3e8e78301646aaa0d (diff)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@119 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/pyp-topics/scripts')
-rwxr-xr-xgi/pyp-topics/scripts/spans2labels.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pyp-topics/scripts/spans2labels.py b/gi/pyp-topics/scripts/spans2labels.py
index 09f879d0..25c57778 100755
--- a/gi/pyp-topics/scripts/spans2labels.py
+++ b/gi/pyp-topics/scripts/spans2labels.py
@@ -14,7 +14,7 @@ if len(sys.argv) > 2:
phrase_context_index = {}
for line in file(sys.argv[1], 'r'):
phrase,tail= line.split('\t')
- contexts = tail.split(" ||| ")
+ contexts = tail.split(" ||| ")[1:]
assert len(contexts) % 2 == 0
for i in range(0, len(contexts), 2):
category = contexts[i+1].split("=")[1].strip()