nltk.tokenize.PunktSentenceTokenizer.sentences_from_text

PunktSentenceTokenizer.sentences_from_text(text, realign_boundaries=True)[source]

Given a text, generates the sentences in that text by only testing candidate sentence breaks. If realign_boundaries is True, includes in the sentence closing punctuation that follows the period.