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
|
@ -102,7 +102,8 @@ cdef class GreedyParser:
|
||||||
for i in range(tokens.length):
|
for i in range(tokens.length):
|
||||||
heads_array[i] = gold_heads[i]
|
heads_array[i] = gold_heads[i]
|
||||||
labels_array[i] = self.moves.label_ids[gold_labels[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)
|
cdef State* state = init_state(mem, tokens.data, tokens.length)
|
||||||
while not is_final(state):
|
while not is_final(state):
|
||||||
fill_context(context, state)
|
fill_context(context, state)
|
||||||
|
|
Loading…
Reference in New Issue