mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-05 22:20:34 +03:00
Fix parser model
This commit is contained in:
parent
17efd6bfec
commit
b60eede321
|
@ -261,7 +261,7 @@ class ParserStepModel(Model):
|
|||
|
||||
def get_token_ids(self, states):
|
||||
cdef StateClass state
|
||||
states = [state for state in states() if not state.is_final()]
|
||||
states = [state for state in states if not state.is_final()]
|
||||
cdef np.ndarray ids = numpy.zeros((len(states), self.state2vec.nF),
|
||||
dtype='i', order='C')
|
||||
ids.fill(-1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user