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()
A variation in the @Kevin answer which will solve the question is as follows:
for(CoreMap sentence: sentences) { String sentenceText = sentence.get(TextAnnotation.class) }
which gets you the sentence information without bothering with the other annotators.