From fbec72b4c362c5309b7f92a9ae0fa84c62de3a21 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sat, 23 Mar 2019 11:22:44 +0100 Subject: [PATCH] Slightly modify test for #3468 Check for Token.is_sent_start first (which is serialized/deserialized correctly) --- spacy/tests/regression/test_issue3468.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/regression/test_issue3468.py b/spacy/tests/regression/test_issue3468.py index 77147c9aa..25b81861b 100644 --- a/spacy/tests/regression/test_issue3468.py +++ b/spacy/tests/regression/test_issue3468.py @@ -13,11 +13,11 @@ def test_issue3468(): nlp = English() nlp.add_pipe(nlp.create_pipe("sentencizer")) doc = nlp("Hello world") - assert doc.is_sentenced assert doc[0].is_sent_start + assert doc.is_sentenced assert len(list(doc.sents)) == 1 doc_bytes = doc.to_bytes() new_doc = Doc(nlp.vocab).from_bytes(doc_bytes) - assert new_doc.is_sentenced assert doc[0].is_sent_start + assert new_doc.is_sentenced assert len(list(new_doc.sents)) == 1