mirror of https://github.com/explosion/spaCy.git
* Remove assertion from vocab.pyx
This commit is contained in:
parent
c08f10083c
commit
e9c59693ea
|
@ -255,7 +255,6 @@ cdef class Vocab:
|
|||
|
||||
lexeme.repvec = EMPTY_VEC
|
||||
py_str = self.strings[lexeme.orth]
|
||||
assert py_str[-3:] == self.strings[lexeme.suffix], "%s (%d) suffix %s (%d)" % (repr(py_str), lexeme.orth, repr(self.strings[lexeme.suffix]), lexeme.suffix)
|
||||
key = hash_string(py_str)
|
||||
self._by_hash.set(key, lexeme)
|
||||
self._by_orth.set(lexeme.orth, lexeme)
|
||||
|
|
Loading…
Reference in New Issue