  def test_sentence_space(EN):
      text = ('''I look forward to using Thingamajig.  I've been told it will '''
              '''make my life easier...''')
      doc = EN(text)
      doc.from_array([HEAD], numpy.asarray([[1, 0, -1, -2, -1, -1, -5,
                                             4, 3, 2, 1, 0, 2, 1, -3, 1, 1, -3, -7]],
                                   dtype='int32').T)
      assert len(list(doc.sents)) == 2
  
 
</s> remove @pytest.mark.xfail
 </s> add  </s> remove         while self.buffer_length() == 0 or self.stack_depth() == 0:
 </s> add         while self.buffer_length() == 0 \
        or self.stack_depth() == 0 \
        or Lexeme.c_check_flag(self.S_(0).lex, IS_SPACE): </s> remove         # Don't allow spaces to be the first word of a sentence
        elif Lexeme.c_check_flag(st.B_(0).lex, IS_SPACE):
            return False
 </s> add 
  def test_sentence_space(EN):
      text = ('''I look forward to using Thingamajig.  I've been told it will '''
              '''make my life easier...''')
      doc = EN(text)



      assert len(list(doc.sents)) == 2
  
keep keep keep keep replace replace replace keep keep
 * Unwind limit to sentence boundary detection that prevents it from inserting boundaries on whitespace. Replace it with a check for whitespace in StateClass.fast_forward, so that whitespace is LeftArced when it's on the stack. This should prevent the previous problem of whitespace-only sentences. Should fix Issue #184, but may cause further problems. Needs testing. 
spacy/tests/parser/test_space_attachment.py