From 2bc06e4b222c7f38505235b30105bca1d15bf286 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 16 Oct 2017 19:38:29 +0200 Subject: [PATCH] Bump rolling buffer size to 10k --- spacy/language.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/language.py b/spacy/language.py index f092c9806..7fd56ed56 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -526,7 +526,7 @@ class Language(object): for word in doc: recent_strings.add(word.text) recent_refs.add(doc) - if nr_seen < 1000: + if nr_seen < 10000: old_refs.add(doc) nr_seen += 1 elif len(old_refs) == 0: