From 3a505e7e14acf70e82910ca285b762259f20d5d4 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Sat, 10 Oct 2020 21:05:28 +0200 Subject: [PATCH] small edit to ensure the new word was indeed new --- spacy/tests/pipeline/test_entity_linker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/spacy/tests/pipeline/test_entity_linker.py b/spacy/tests/pipeline/test_entity_linker.py index 673a354dd..f2e6defcb 100644 --- a/spacy/tests/pipeline/test_entity_linker.py +++ b/spacy/tests/pipeline/test_entity_linker.py @@ -511,6 +511,7 @@ def test_kb_serialization(): mykb.to_disk(kb_dir) nlp2 = English() + assert "RandomWord" not in nlp2.vocab.strings nlp2.vocab.strings.add("RandomWord") assert "RandomWord" in nlp2.vocab.strings assert "Q2146908" not in nlp2.vocab.strings