mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Reset all caches when reloading special cases
This commit is contained in:
parent
59eba273bb
commit
4ef6bd171d
|
@ -620,6 +620,8 @@ cdef class Tokenizer:
|
|||
def _reload_special_cases(self):
|
||||
self._flush_cache()
|
||||
self._flush_specials()
|
||||
self._cache = PreshMap()
|
||||
self._specials = PreshMap()
|
||||
self._load_special_cases(self._rules)
|
||||
|
||||
def explain(self, text):
|
||||
|
|
Loading…
Reference in New Issue
Block a user