* Build a python list of word strings, for debugging

This commit is contained in:
Matthew Honnibal 2015-01-28 01:06:13 +11:00
parent d819101571
commit f9ee5d9934
1 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ cdef class GreedyParser:
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)