nltk.PunktSentenceTokenizer.sentences_from_text_legacy

PunktSentenceTokenizer.sentences_from_text_legacy(text)[source]

Given a text, generates the sentences in that text. Annotates all tokens, rather than just those with possible sentence breaks. Should produce the same results as sentences_from_text.