mirror of https://github.com/explosion/spaCy.git
* Build a python list of word strings, for debugging
This commit is contained in:
parent
d819101571
commit
f9ee5d9934
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue