      tokens = en_tokenizer(text)
      return get_doc(tokens.vocab, [t.text for t in tokens], heads=heads, deps=deps)
  
  
  def test_spans_sent_spans(doc):
      sents = list(doc.sents)
      assert sents[0].start == 0
      assert sents[0].end == 5
 
</s> remove def test_spans_span_sent(doc):
 </s> add def test_spans_span_sent(doc, doc_not_parsed): </s> remove def test_span_as_doc(doc):
    span = doc[4:10]
    span_doc = span.as_doc()
    assert span.text == span_doc.text.strip()
 </s> add #def test_span_as_doc(doc):
#    span = doc[4:10]
#    span_doc = span.as_doc()
#    assert span.text == span_doc.text.strip() </s> remove     assert matches[0][1] == start
    assert matches[0][2] == end
 </s> add     print(matches)
    assert matches[-1][1] == start
    assert matches[-1][2] == end </s> remove     assert isinstance(doc[2].pos_, six.text_type)
    assert isinstance(doc[2].dep_, six.text_type)
 </s> add     assert isinstance(doc[2].pos_, unicode_)
    assert isinstance(doc[2].dep_, unicode_)
@pytest.fixture
def doc_not_parsed(en_tokenizer):
    text = "This is a sentence. This is another sentence. And a third."
    tokens = en_tokenizer(text)
    d = get_doc(tokens.vocab, [t.text for t in tokens])
    d.is_parsed = False
    return d


      tokens = en_tokenizer(text)
      return get_doc(tokens.vocab, [t.text for t in tokens], heads=heads, deps=deps)
  
  
@pytest.fixture
def doc_not_parsed(en_tokenizer):
    text = "This is a sentence. This is another sentence. And a third."
    tokens = en_tokenizer(text)
    d = get_doc(tokens.vocab, [t.text for t in tokens])
    d.is_parsed = False
    return d


  def test_spans_sent_spans(doc):
      sents = list(doc.sents)
      assert sents[0].start == 0
      assert sents[0].end == 5
keep keep keep add keep keep keep keep
 Revert "Merge branch 'develop' of https://github.com/explosion/spaCy into develop"

This reverts commit c9ba3d3c2dc7067cf8bd55f878cec45a8c6d73d4, reversing
changes made to 92c26a35d425d4e8ca1b805ea776ea10f5ded3df. 
spacy/tests/doc/test_span.py