def split_into_sentences(s):
  """Split text into list of sentences."""
  s = re.sub(r"\s+", " ", s)
  s = re.sub(r"[\\.\\?\\!]", "\n", s)
  return s.split("\n")
def split_into_sentences ( s ) : s = re . sub ( r"\s+" , " " , s ) s = re . sub ( r"[\\.\\?\\!]" , "\n" , s ) return s . split ( "\n" )
Split text into list of sentences.