mirror of https://github.com/explosion/spaCy.git
Fix off-by-one error in vectors
This commit is contained in:
parent
05a1dd570e
commit
d0cf12c8c7
|
@ -137,7 +137,7 @@ cdef class Vectors:
|
|||
if row >= self.keys.shape[0]:
|
||||
self.keys.resize((row*2,))
|
||||
self.data.resize((row*2, self.data.shape[1]))
|
||||
self.keys[self.i] = key
|
||||
self.keys[row] = key
|
||||
|
||||
self.key2row[key] = row
|
||||
self.keys[row] = key
|
||||
|
|
Loading…
Reference in New Issue