mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 16:24:16 +03:00
Edit comment
This commit is contained in:
parent
378280039b
commit
dd1678eab3
|
@ -560,9 +560,9 @@ class Language(object):
|
|||
elif len(old_refs) == 0:
|
||||
self.vocab.strings._cleanup_stale_strings()
|
||||
nr_seen = 0
|
||||
# Last batch can be not garbage collected and we cannot know it — last
|
||||
# doc still here. Not erase that strings — just extend with original
|
||||
# content
|
||||
# We can't know which strings from the last batch have really expired.
|
||||
# So we don't erase the strings — we just extend with the original
|
||||
# content.
|
||||
for string in original_strings_data:
|
||||
self.vocab.strings.add(string)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user