diff --git a/spacy/lang.pyx b/spacy/lang.pyx index 3dca09ac6..9391d04cb 100644 --- a/spacy/lang.pyx +++ b/spacy/lang.pyx @@ -118,7 +118,7 @@ cdef class Language: lexemes[i] = self.lexicon.get(substring) tokens.push_back(lexemes[i]) lexemes[i + 1] = NULL - if self.cache_size < 1000000: + if self.cache_size < 10000000: self.cache[hashed] = lexemes self.cache_size += 1 else: