Skip to content

Instantly share code, notes, and snippets.

@p-aridhi
p-aridhi / nltk_tokenize_tag_chunk.rst
Created March 3, 2016 19:43 — forked from japerk/nltk_tokenize_tag_chunk.rst
NLTK Tokenization, Tagging, Chunking, Treebank

Sentence Tokenization

>>> from nltk import tokenize
>>> para = "Hello. My name is Jacob. Today you'll be learning NLTK."
>>> sents = tokenize.sent_tokenize(para)
>>> sents
['Hello.', 'My name is Jacob.', "Today you'll be learning NLTK."]