mirror of https://github.com/explosion/spaCy.git
* Fix Parser.partial function
This commit is contained in:
parent
d4e79a5ca2
commit
9de218b7ba
|
@ -96,11 +96,6 @@ cdef class Parser:
|
||||||
for action_name in initial_actions:
|
for action_name in initial_actions:
|
||||||
action = self.moves.lookup_transition(action_name)
|
action = self.moves.lookup_transition(action_name)
|
||||||
action.do(stcls, action.label)
|
action.do(stcls, action.label)
|
||||||
|
|
||||||
cdef Example eg = Example(self.model.n_classes, CONTEXT_SIZE,
|
|
||||||
self.model.n_feats, self.model.n_feats)
|
|
||||||
with nogil:
|
|
||||||
self.parse(stcls, eg.c)
|
|
||||||
tokens.set_parse(stcls._sent)
|
tokens.set_parse(stcls._sent)
|
||||||
return stcls
|
return stcls
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue