Fix test for #3468

This commit is contained in:
Ines Montani 2019-03-23 11:24:29 +01:00
parent fbec72b4c3
commit 6b6e9b638e

View File

@ -18,6 +18,6 @@ def test_issue3468():
assert len(list(doc.sents)) == 1 assert len(list(doc.sents)) == 1
doc_bytes = doc.to_bytes() doc_bytes = doc.to_bytes()
new_doc = Doc(nlp.vocab).from_bytes(doc_bytes) new_doc = Doc(nlp.vocab).from_bytes(doc_bytes)
assert doc[0].is_sent_start assert new_doc[0].is_sent_start
assert new_doc.is_sentenced assert new_doc.is_sentenced
assert len(list(new_doc.sents)) == 1 assert len(list(new_doc.sents)) == 1