Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 6, 2019 09:26
Show Gist options
  • Select an option

  • Save prateekjoshi565/4daa97733235b7f7f3e1e03088124705 to your computer and use it in GitHub Desktop.

Select an option

Save prateekjoshi565/4daa97733235b7f7f3e1e03088124705 to your computer and use it in GitHub Desktop.
split text into sentences
# split text into sentences
def to_lines(text):
sents = text.strip().split('\n')
sents = [i.split('\t') for i in sents]
return sents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment