def _sentences(text):
 delimiters = (u'[%s]' % u''.join([(u'\\' + d) for d in _SENTENCE_DELIMITERS]))
 sentences = re.split(delimiters, text.strip())
 return [s.strip() for s in sentences if s.strip()]

def _sentences ( text ) : delimiters = ( u'[%s]' % u'' . join ( [ ( u'\\' + d ) for d in _SENTENCE_DELIMITERS ] ) ) sentences = re . split ( delimiters , text . strip ( ) ) return [ s . strip ( ) for s in sentences if s . strip ( ) ]
splits a piece of text into sentences .