Created
February 6, 2019 09:26
-
-
Save prateekjoshi565/4daa97733235b7f7f3e1e03088124705 to your computer and use it in GitHub Desktop.
split text into sentences
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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