From f9ee5d9934d54a67296e924fff0a721eb6c3bbbd Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Wed, 28 Jan 2015 01:06:13 +1100 Subject: [PATCH] * Build a python list of word strings, for debugging --- spacy/syntax/parser.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/syntax/parser.pyx b/spacy/syntax/parser.pyx index 142afb9c3..c93bc4cf2 100644 --- a/spacy/syntax/parser.pyx +++ b/spacy/syntax/parser.pyx @@ -102,7 +102,8 @@ cdef class GreedyParser: for i in range(tokens.length): heads_array[i] = gold_heads[i] labels_array[i] = self.moves.label_ids[gold_labels[i]] - + + py_words = [t.orth_ for t in tokens] cdef State* state = init_state(mem, tokens.data, tokens.length) while not is_final(state): fill_context(context, state)