mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Bump rolling buffer size to 10k
This commit is contained in:
parent
66e2eb8f39
commit
2bc06e4b22
|
@ -526,7 +526,7 @@ class Language(object):
|
||||||
for word in doc:
|
for word in doc:
|
||||||
recent_strings.add(word.text)
|
recent_strings.add(word.text)
|
||||||
recent_refs.add(doc)
|
recent_refs.add(doc)
|
||||||
if nr_seen < 1000:
|
if nr_seen < 10000:
|
||||||
old_refs.add(doc)
|
old_refs.add(doc)
|
||||||
nr_seen += 1
|
nr_seen += 1
|
||||||
elif len(old_refs) == 0:
|
elif len(old_refs) == 0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user