Last active
December 7, 2015 10:11
-
-
Save MaryamZi/01bb0977564b6a94180b to your computer and use it in GitHub Desktop.
Blog - NLP - Sentence Tokenization Example
This file contains 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
from nltk import sent_tokenize | |
test_sentence = "Hi Mr. Sam, today's a good day to learn NLP. It's a well-known field of study." | |
sentences = sent_tokenize(test_sentence) | |
print sentences |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment