mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Don't remove entries from specials
This commit is contained in:
parent
30ba81f881
commit
542e6fd4ea
|
@ -136,7 +136,6 @@ cdef class Tokenizer:
|
|||
def _reset_cache(self, keys):
|
||||
for k in keys:
|
||||
del self._cache[k]
|
||||
del self._specials[k]
|
||||
|
||||
cdef int _try_cache(self, hash_t key, Doc tokens) except -1:
|
||||
cached = <_Cached*>self._cache.get(key)
|
||||
|
|
Loading…
Reference in New Issue
Block a user