Skip to content

Instantly share code, notes, and snippets.

@language-engineering
Created September 14, 2012 14:43
Show Gist options
  • Save language-engineering/3722332 to your computer and use it in GitHub Desktop.
Save language-engineering/3722332 to your computer and use it in GitHub Desktop.
from nltk import sent_tokenize
sentences = sent_tokenize(document) #segment a single string (our document) into a list of sentences and store in "sents"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment