From 462caf835a9e499387ca20858aecd6e4d9da725d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Thu, 12 Oct 2017 21:18:22 +0200 Subject: [PATCH] Fix SBD test --- spacy/tests/parser/test_preset_sbd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/parser/test_preset_sbd.py b/spacy/tests/parser/test_preset_sbd.py index f10b96192..4c973bd97 100644 --- a/spacy/tests/parser/test_preset_sbd.py +++ b/spacy/tests/parser/test_preset_sbd.py @@ -35,7 +35,7 @@ def parser(vocab): def test_no_sentences(parser): doc = Doc(parser.vocab, words=['a', 'b', 'c', 'd']) doc = parser(doc) - assert len(list(doc.sents)) == 2 + assert len(list(doc.sents)) >= 1 def test_sents_1(parser):