mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Fix parser
This commit is contained in:
parent
8a82367a9d
commit
99649d114d
|
@ -218,9 +218,10 @@ cdef class Parser:
|
|||
if beam_width == 1:
|
||||
batch = self.moves.init_batch(docs)
|
||||
weights = get_c_weights(model)
|
||||
sizes = get_c_sizes(model, states.size())
|
||||
for state in batch:
|
||||
states.push_back(state.c)
|
||||
if not state.is_final():
|
||||
states.push_back(state.c)
|
||||
sizes = get_c_sizes(model, states.size())
|
||||
with nogil:
|
||||
self._parseC(&states[0],
|
||||
weights, sizes)
|
||||
|
|
Loading…
Reference in New Issue
Block a user