How can I split a text or paragraph into sentences using Stanford parser?
Is there any method that can extract sentences, such as getSentencesFromString()
getSentencesFromString()
You can use the document preprocessor. It's really easy. Just feed it a filename.
for (List sentence : new DocumentPreprocessor(pathto/filename.txt)) { //sentence is a list of words in a sentence }