mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 10:16:27 +03:00
Fix parser.add_label()
This commit is contained in:
parent
893aa40d73
commit
1f7c56cd93
|
@ -163,7 +163,7 @@ cdef class Parser:
|
|||
added = self.moves.add_action(action, label)
|
||||
if added:
|
||||
resized = True
|
||||
if resized:
|
||||
if resized and "nr_class" in self.cfg:
|
||||
self.cfg["nr_class"] = self.moves.n_moves
|
||||
if self.model not in (True, False, None) and resized:
|
||||
self.model.resize_output(self.moves.n_moves)
|
||||
|
|
Loading…
Reference in New Issue
Block a user