Skip to content

Instantly share code, notes, and snippets.

@MaryamZi
Last active December 7, 2015 10:11
Show Gist options
  • Save MaryamZi/01bb0977564b6a94180b to your computer and use it in GitHub Desktop.
Save MaryamZi/01bb0977564b6a94180b to your computer and use it in GitHub Desktop.
Blog - NLP - Sentence Tokenization Example
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