I\'m trying to get my head around the Stanford CoreNLP API. I wish to get a simple sentence to be tokenized using following code:
Properties props = new
This line retrieves sentence annotations.
List sentences = document.get(SentencesAnnotation.class);
But your pipeline contains only the tokenizer, not the sentence splitter.
Change the following line:
props.put("annotators", "tokenize, ssplit"); // add sentence splitter