def test_issue309(en_tokenizer):
 tokens = en_tokenizer(u' ')
 doc = get_doc(tokens.vocab, [t.text for t in tokens], heads=[0], deps=[u'ROOT'])
 doc.is_parsed = True
 assert (len(doc) == 1)
 sents = list(doc.sents)
 assert (len(sents) == 1)

def test_issue309 ( en_tokenizer ) : tokens = en_tokenizer ( u' ' ) doc = get_doc ( tokens . vocab , [ t . text for t in tokens ] , heads = [ 0 ] , deps = [ u'ROOT' ] ) doc . is_parsed = True assert ( len ( doc ) == 1 ) sents = list ( doc . sents ) assert ( len ( sents ) == 1 )
test issue #309: sbd fails on empty string .