mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Fix Parser.get_state
This commit is contained in:
parent
18331dca89
commit
f0f4fa9838
|
@ -109,7 +109,7 @@ cdef class Parser:
|
|||
fill_context(eg.c.atoms, stcls)
|
||||
self.model.set_scores(eg.c.scores, eg.c.atoms)
|
||||
eg.guess = arg_max_if_true(eg.c.scores, eg.c.is_valid, self.model.n_classes)
|
||||
self.moves.c[eg.guess].do(stcls, self.moves.c[eg.c.guess].label)
|
||||
self.moves.c[eg.guess].do(stcls, self.moves.c[eg.guess].label)
|
||||
if stcls.is_final():
|
||||
self.moves.finalize_state(stcls)
|
||||
tokens.set_parse(stcls._sent)
|
||||
|
|
Loading…
Reference in New Issue
Block a user