mirror of https://github.com/explosion/spaCy.git
small edit to ensure the new word was indeed new
This commit is contained in:
parent
68d79796c6
commit
3a505e7e14
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue