Performing sentence splitting

Many NLP processes require splitting a large amount of text into sentences.  This may seem to be a simple task, but for computers it can be problematic.  A simple sentence splitter can look just for periods (.), or use other algorithms such as predictive classifiers.  We will examine two means of sentence splitting with NLTK.

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.