Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sentence splitter

>>> from nltk import tokenize
>>> p = "Good morning Dr. Adams. The patient is waiting for you in room number 3."

>>> tokenize.sent_tokenize(p)
['Good morning Dr. Adams.', 'The patient is waiting for you in room number 3.']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #sentence #splitter
ADD COMMENT
Topic
Name
6+2 =