From b38093237e24085a788214ac8b7093b64eb00bf9 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 30 Jan 2015 11:15:54 +1100 Subject: [PATCH] * More debug prints --- bin/parser/train.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/parser/train.py b/bin/parser/train.py index f41addb7f..d901a914f 100755 --- a/bin/parser/train.py +++ b/bin/parser/train.py @@ -105,7 +105,9 @@ def _align_annotations_to_non_gold_tokens(tokens, words, annot): print words for token in tokens: print token.orth_, words[0] + print token.idx, annot[0][0] while annot and token.idx > annot[0][0]: + print 'pop', token.idx, annot[0][0] annot.pop(0) words.pop(0) loss += 1