Open
Description
A sentence which has quoted as well as non-quoted words in it is not parsed uniformly.
Given sentences such as-
"Where were you?" asked Mary angrily.
It will parse roughly half the sentences as one sentence -
- "Where were you?" asked Mary angrily.
and the other half as -
- "Where were you?"
- asked Mary angrily.
This occurs when the following code is executed (in the most recent version)-
Properties props = new Properties();
props.setProperty("annotators", "tokenize, ssplit, pos, lemma, ner, depparse");
pipeline = new StanfordCoreNLP(props);
Annotation document = new Annotation(doc);
pipeline.annotate(document);
List<CoreMap> sentences = document.get(SentencesAnnotation.class);